What is that?
#1

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
Reply
#2

Bump.
Reply
#3

Im not Pro but i would say it Saves ur level
Reply
#4

What is basically does, it saves your level according to your name, in the mySQL database
Reply
#5

My level is 5,it saves 0 to the database.Why :S Everything is cool,i checked 1000 times :S
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)