"/q" not saving data
#2

Check callback OnPlayerDisconnect

Quote:

public OnPlayerDisconnect(playerid, reason)
{
new
query[128],
Floatos[4];

GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
GetPlayerFacingAngle(playerid, pos[3]);

mysql_format(mysql, query, sizeof(query), "UPDATE `accounts` SET `Money` = %d, `PosX` = %f, `PosY` = %f, `PosZ` = %f, `PosA` = %f WHERE `ID` = %d",
GetPlayerMoney(playerid), pos[0], pos[1], pos[2], pos[3], Player[playerid][ID]);
mysql_tquery(mysql, query, "", "");

return true;
}

Reply


Messages In This Thread
"/q" not saving data - by eikzdej - 24.01.2017, 01:47
Respuesta: "/q" not saving data - by Eloy - 24.01.2017, 02:06
Re: "/q" not saving data - by Loinal - 24.01.2017, 07:08
Re: "/q" not saving data - by Vince - 24.01.2017, 08:08
Re: "/q" not saving data - by eikzdej - 24.01.2017, 11:43
Re: "/q" not saving data - by saffierr - 24.01.2017, 11:50
Re: "/q" not saving data - by eikzdej - 24.01.2017, 11:56
Re: "/q" not saving data - by BroZeus - 24.01.2017, 15:40
Re: "/q" not saving data - by eikzdej - 24.01.2017, 21:27
Re: "/q" not saving data - by YouHack - 25.01.2017, 01:24

Forum Jump:


Users browsing this thread: 2 Guest(s)