08.09.2010, 11:50
How is easyst way to compile 1.4 to 2.0?
I have a problem and its after like one or more hours that my gamemode is fine but after i think it disconnect from mySQL because when i go ingame and try to login at my account which is already registered in the database it says this name isnt took and show me register and when i register it still comes means it doesnt save even
thanks to help me |
Thats either probably because your mysql database is turning on/off at periods. If its localhosted, it shouldn't be doing that, and it would be more of a function inside you script.
If it isn't local hosted, and you have a company hosting your db, try contacting them on it. |
'WHERE `userid1 = '0''.
Unnecessary quote marks. Change that query to this; Code:
WHERE `userid` = 0 (or any % module). |
format(string, sizeof(string), "UPDATE `Accounts` SET `Password` = '%s', `AdminLevel` = '%d', `Money` = '%d', `Score` = '%d', WHERE `UserID` = %d", PlayerStatistics[playerid][pPassword], PlayerStatistics[playerid][pAdminLevel], PlayerStatistics[playerid][pMoney], PlayerStatistics[playerid][pDatabaseID]);
Okay, thank you. I have changed it to this;
pawn Code:
|
`AdminLevel` = %d, `Money` = %d, `Score` = %d
pawn Code:
Plus, you also added a extra comma before "WHERE `userid` = %d". |
"SELECT * FROM `Accounts` WHERE `UserID` = '%d'"