25.12.2013, 19:35
pawn Code:
stock MySQL_Save(playerid) {
GetPlayerIp(playerid, PlayerData[playerid][pIP], 50);
new query[3000];
format(query, sizeof(query), "UPDATE `playerdata` SET ip = '%s', adminlevel = '%d' WHERE username = '%s'",
GetPlayerIp(playerid,pIP,32),
PlayerData[playerid][pAdminLevel],
GetPlayerNameEx(playerid));
mysql_query(query);
return 1;
}