SA-MP Forums Archive
Player Wanted - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Player Wanted (/showthread.php?tid=111497)



Player Wanted - xivo - 02.12.2009

Hey i have an Login / Register System.
How to do that the System Save the Wanted LvL ?




Re: Player Wanted - MaykoX - 02.12.2009

Hmm, i searched didnt find nothing... im searching for that too if anyone knows it please tell it.


Re: Player Wanted - Joe Staff - 02.12.2009

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!


Re: Player Wanted - xivo - 02.12.2009

I have it :P Thanks ^^ You can close these thread