Not saving stats [MYSQL]
#5

The count of placeholders does not match the count of arguments.

pawn Код:
mysql_format(mysql, query, sizeof(query),
    "UPDATE accounts \
        SET Money = %d, \
            PosX = %f, PosY = %f, PosZ = %f, PosA = %f, \
            Kills = %d, Deaths = %d \
      WHERE ID = %d"
,
GetPlayerMoney(playerid),
pos[0], pos[1], pos[2], pos[3],
Player[playerid][Kills], Player[playerid][Deaths],
Player[playerid][ID]);
This is wrong:
pawn Код:
mysql_tquery(mysql, query, "OnPlayerUpdate", "i", playerid);
There is already a public function under this name. Change it to something else or remove the specified callback altogether.

Use server-side money so cheats will not work.
Reply


Messages In This Thread
Not saving stats [MYSQL] - by robibacsika - 07.12.2018, 05:52
Re: Not saving stats [MYSQL] - by Calisthenics - 07.12.2018, 06:32
Re: Not saving stats [MYSQL] - by robibacsika - 07.12.2018, 06:41
Re: Not saving stats [MYSQL] - by robibacsika - 07.12.2018, 06:48
Re: Not saving stats [MYSQL] - by Calisthenics - 07.12.2018, 07:09
Re: Not saving stats [MYSQL] - by robibacsika - 07.12.2018, 07:56
Re: Not saving stats [MYSQL] - by UFF - 07.12.2018, 08:59
Re: Not saving stats [MYSQL] - by Calisthenics - 07.12.2018, 11:54

Forum Jump:


Users browsing this thread: 1 Guest(s)