25.01.2017, 00:48
when i set it from database: saids
This work but if i close the server then start it back up.
OnPlayerDisconnect:
then when start the server. then login to the server and to my account
error pop up
RegisterDialog:
This work but if i close the server then start it back up.
Код:
[17:15:02] [plugins/mysql] cache_get_value_name_int: value 'lol' is not a number
Код:
mysql_format(mysql, query, sizeof(query), "UPDATE `accounts` SET `SCORE`= %i , `Admin` = '%i' , `personalmsg` = '%e' WHERE `ID` = '%d'", GetPlayerScore(playerid), PlayerInfo[playerid][pAdmin], PlayerInfo[playerid][personalmsg], PlayerInfo[playerid][ID]);
Код:
UPDATE `accounts` SET `personalmsg` = 'lol' WHERE `accounts`.`ID` = 3;
error pop up
Код:
[17:15:02] [plugins/mysql] cache_get_value_name_int: value 'lol' is not a number
Код:
mysql_format(mysql, query, sizeof(query), "INSERT INTO `accounts` (`Name`, `Password`, `IP`, `personalmsg`, `Admin`, `Money`) VALUES ('%e', '%e', '%e', 0, 0,'%e')", Name[playerid], PlayerInfo[playerid][Password], IP[playerid], PlayerInfo[playerid][personalmsg]);
Код:
forward OnAccountLoad(playerid); public OnAccountLoad(playerid) { cache_get_value_name_int(0, "Admin", PlayerInfo[playerid][pAdmin]); cache_get_value_name_int(0, "Score", PlayerInfo[playerid][Score]); cache_get_value_name_int(0, "personalmsg", PlayerInfo[playerid][personalmsg]); GivePlayerMoney(playerid, PlayerInfo[playerid][Money]); SetPlayerScore(playerid, PlayerInfo[playerid][Score]); return true; }