22.01.2017, 04:18
This looks like an older version of MySQL to me.
Updated to R40+ Syntax:
Updated to R40+ Syntax:
Код:
forward OnAccountLoad(playerid); public OnAccountLoad(playerid) { cache_get_value_name_int(0, "Admin", PlayerInfo[playerid][pAdmin]); cache_get_value_name_int(0, "VIP", PlayerInfo[playerid][pVIP]); cache_get_value_name_int(0, "Score", PlayerInfo[playerid][Score]); cache_get_value_name_int(0, "Money", PlayerInfo[playerid][Money]); printf("%d | %d | %d | %d", PlayerInfo[playerid][pAdmin], PlayerInfo[playerid][pVIP], PlayerInfo[playerid][Score], PlayerInfo[playerid][Money]); GivePlayerMoney(playerid, PlayerInfo[playerid][Money]); SetPlayerScore(playerid, PlayerInfo[playerid][Score]); SendClientMessage(playerid, -1, "You have successfully logged in."); return true; }