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


Messages In This Thread
What is that? - by Nightmare[TR] - 16.06.2012, 02:18
Re: What is that? - by Nightmare[TR] - 16.06.2012, 06:35
Re: What is that? - by Audi_Quattrix - 16.06.2012, 17:27
Re: What is that? - by Dodo9655 - 16.06.2012, 17:31
Re: What is that? - by Nightmare[TR] - 17.06.2012, 09:03

Forum Jump:


Users browsing this thread: 2 Guest(s)