What is that? - 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)
+--- Thread: What is that? (
/showthread.php?tid=351402)
What is that? -
Nightmare[TR] - 16.06.2012
Hi friends,i noticed something that very weird. After player disconnects game,a function saves his datas.One row is like this:
pawn Код:
SetMemberInfoInt(username,"adminlevel",PlayerInfo[playerid][Level]);
And the function is this:
pawn Код:
FUNCTION SetMemberInfoInt(username[], statname[], value)
{
new query[128];
format(query,128,"UPDATE members SET %s='%i' WHERE member_name='%s'",statname,value,username);
mysql_query(query);
return 1;
}
But,what is that?Query goes like this:
pawn Код:
UPDATE members SET adminlevel='0' WHERE member_name='Snakeman'
Note: PlayerInfo[playerid][Level] is 5
Re: What is that? -
Nightmare[TR] - 16.06.2012
Bump.
Re: What is that? -
Audi_Quattrix - 16.06.2012
Im not Pro but i would say it Saves ur level
Re: What is that? -
Dodo9655 - 16.06.2012
What is basically does, it saves your level according to your name, in the mySQL database
Re: What is that? -
Nightmare[TR] - 17.06.2012
My level is 5,it saves 0 to the database.Why :S Everything is cool,i checked 1000 times :S