Player Wanted
#3

You'd have to add your own part into the currently existing saving function. Each saved player variable has to go through relatively the same process.

Ex:
pawn Код:
////Mid-Script example
format(tmp,sizeof(tmp,"CheeseBurgrz = %d",pCheeseBurgrz[playerid]);
fwrite(file,tmp);
//Next line is similar
format(tmp,sizeof(tmp,"KetchupBottlz = %d",pKetchup[playerid]);
fwrite(file,tmp);
////
So clearly if you wanted to add to it, you would just copy the saving portion that's similar to what you want saved (like if it's an integer, a float, or a string) and then change it to your variable.



sassafratz!
Reply


Messages In This Thread
Player Wanted - by xivo - 02.12.2009, 12:25
Re: Player Wanted - by MaykoX - 02.12.2009, 12:44
Re: Player Wanted - by Joe Staff - 02.12.2009, 13:27
Re: Player Wanted - by xivo - 02.12.2009, 13:49

Forum Jump:


Users browsing this thread: 1 Guest(s)