An error has occured
#1

Reopened, found another bug which I need help with. This is the server's log:
http://pastebin.com/qnwYSQ2R

This is the line where the MYSQL saves of which creates the bug:
Код:
format(query, sizeof(query), "UPDATE `Accounts` SET `PrisonSelect` = %d, `PrisonTime` = %d, `AdminPrisonCount` = %d, `SecondsLoggedIn` = %d, `PlayingHours` = %d, `AdminCode` = %d, `PhoneN` = %d, `PhoneCredit` = %d, `PhoneBook` = %d, `House` = %d, `Hotel` = %d, `Hospitalized` = %d, WHERE `UserID` = '%d'",
It does save, just it doesn't save them. Thanks in advance
Reply
#2

Remove ',' before WHERE
Reply
#3

mistake is " , " before WHERE
pawn Код:
format(query, sizeof(query), "UPDATE `Accounts` SET `PrisonSelect` = %d, `PrisonTime` = %d, `AdminPrisonCount` = %d, `SecondsLoggedIn` = %d, `PlayingHours` = %d, `AdminCode` = %d, `PhoneN` = %d, `PhoneCredit` = %d, `PhoneBook` = %d, `House` = %d, `Hotel` = %d, `Hospitalized` = %d WHERE `UserID` = '%d'",
EDIT:late
Reply
#4

Thanks! Took me a while to fix the others too, thanks again!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)