Save crashes server MYSQL
#3

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;
}
Reply


Messages In This Thread
Save crashes server MYSQL - by Blademaster680 - 13.03.2014, 11:03
Re: Save crashes server MYSQL - by Ruben_Alonso - 13.03.2014, 11:07
Re: Save crashes server MYSQL - by xo - 13.03.2014, 12:22

Forum Jump:


Users browsing this thread: 1 Guest(s)