#1✎ 14Codezero13I have
variables=item so on..
load "dat:rpgsave",false out variables
but it's saying I have a duplicate variable... and just.... please help.
#2✎ 14Codezero13i meant to put item1 item2 item3 item4 item5
#3✎ 14Codezero13If anyone will help it would be greatly appreciated...
#6✎ 477SquareFingersThis is not live real-time tech support you pay for, this is a forum of people who volunteer answers. Impatience is rude.
And, it doesn't say you have a duplicate variable, if that's your code. It says syntax error.
#7✎ 14Codezero13N-now it's saying illegal function... will you please help?....
#8✎ 477SquareFingersYou're the only one who can make it possible for people to help you, by giving all the relevant information, and giving it accurately. You're also the only one who can make it so people want to help you - you don't need to overplay how c-close you are to c-crying.
#9✎ 272TheV360Pokemon Is Awesome!I love Pokemon!Express YourselfFirst DayJoined on the very first day of SmileBASIC SourceWebsiteNight PersonI like the quiet night and sleep late.Express YourselfSearch your code for DIM VARIABLES and see if it shows up more than once.
Also, I've answered this question before, so here's a quoted part of it that I hope helps you:
Put this code near the beginning:
It will make an array (essentially a bunch of variables put into one) that will store your save data.
When you want to save, use this:
The first 5 lines put your variables into the array, and the final line saves the array as a DAT file.
Arrays start with 0 for some reason... If you have an array with 5 things in it, the array will go from 0-4. Odd.
When you want to load, use this:
If I remember correctly, this will only work with integers. You can't save real numbers as DAT files. (Integers are variables that can't have decimal points and real numbers are the ones that can)
I agree with SquareFingers' first statement, (but the rest, seriously?! also that statement about making people want to help you is ironic) you need to supply all the information so that we can help you better.
One last thing: there's an edit button so you can fix the first post.
#10✎ 14Codezero13@TheV360 thank you! I will give it a try ^_^
#11✎ 14Codezero13Also i'm sorry if I came off rude. I just was working on it for a while and nothing was working. that's no excuse for being that impatient though.
#12✎ 341MinxrodThird YearMy account is over 3 years oldWebsiteExpert ProgrammerProgramming no longer gives me any trouble. Come to me for help, if you like!Programming StrengthQSP Contest 2 Contest ParticipantI participated in the second SmileBASIC Source QSP Contest!
and nothing was working
Yeah, that pretty much happens all the time >:D
Also, if the saving/loading isn't working, try to add the integer suffix to the array, I think it might've had loading problems if it loads in the wrong format.
#13✎ 202JustGreatFirst MonthJoined in the very first month of SmileBASIC SourceWebsiteAvatar TabooI didn't change my avatar for 180 daysWebsiteNight PersonI like the quiet night and sleep late.Express YourselfFor the future, if you're searching for instant answers, then the site chat is your best bet. The best way to find answers is definitely the forums, however.
#14✎ 14Codezero13ok so now I have var=10
and it says type mismatch in 0:78(save:2)
#15✎ 341MinxrodThird YearMy account is over 3 years oldWebsiteExpert ProgrammerProgramming no longer gives me any trouble. Come to me for help, if you like!Programming StrengthQSP Contest 2 Contest ParticipantI participated in the second SmileBASIC Source QSP Contest!
ok so now I have var=10
and it says type mismatch in o:78(save:2)
Type Mismatch in 0:78 not o:78
It might be because you didn't use quotations around DAT:SAVEDATA, and DAT:SAVEDATA has to be in caps I am pretty sure. SmileBASIC doesn't like to won't save files with lowercase.
#16✎ 14Codezero13Thanks for helping me, but it's still giving me the type mismatch... is there any other way I could save all my data at once?
#17✎ 63blizordThere are like three topics for this.