Scores problem
#2

Код:
UPDATE `tbl_users` SET `Level` = '%d', WHERE ID = %d", `Score` = '%d'
This is the sended query and there is a problem
Код:
UPDATE `tbl_users` SET `Level` = '%d', `Score` = '%d' WHERE ID = %d"
This is a correct query

You need to change this
Код:
    format(query, sizeof(query), " WHERE ID = %d", PlayerInfo[playerid][pID]);
    strcat(final,query);
    format(query, sizeof(query), "`Score` = '%d',",PlayerInfo[playerid][pScore] = GetPlayerScore(playerid));
    strcat(final,query);
To this
Код:
    format(query, sizeof(query), "`Score` = '%d',",PlayerInfo[playerid][pScore] = GetPlayerScore(playerid));
    strcat(final,query);
    format(query, sizeof(query), " WHERE ID = %d", PlayerInfo[playerid][pID]);
    strcat(final,query);
Reply


Messages In This Thread
Scores problem - by Spoff - 22.06.2016, 05:54
Re: Scores problem - by DoggMann - 22.06.2016, 06:17
Re: Scores problem - by Spoff - 23.06.2016, 00:56
Re: Scores problem - by DoggMann - 23.06.2016, 06:17

Forum Jump:


Users browsing this thread: 1 Guest(s)