13.03.2014, 12:22
pawn Код:
stock SaveStats(playerid)
{
new query[400];
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
format(query, sizeof(query), "UPDATE playerdata SET Cash='%d', PosX='%f', PosY='%f', PosZ='%f', Interior='%d', VirtualWorld='%d', AdminLevel='%d' WHERE Name='%s'",
PlayerInfo[playerid][Cash],x,y,z,PlayerInfo[playerid][Int],PlayerInfo[playerid][VW],PlayerInfo[playerid][Admin],GetName(playerid));
mysql_query(query);
printf("Player Saved");
return 1;
}