Scores problem
#1

Guys where is problem with scores ? http://pastebin.com/k4EPGL1d Scores not saved , everytime are 0 on tables
Reply
#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
#3

again same problem
Reply
#4

You have a mysql debug log?
Please post it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)