17.09.2014, 22:05
PHP код:
forward OnAccountLoad(playerid);
public OnAccountLoad(playerid)
{
PlayerInfo[playerid][pAdmin] = cache_get_field_content_int(0, "pAdmin");
PlayerInfo[playerid][pDonor] = cache_get_field_content_int(0, "pDonor");
PlayerInfo[playerid][pScore] = cache_get_field_content_int(0, "pScore");
PlayerInfo[playerid][pCash] = cache_get_field_content_int(0, "pCash");
PlayerInfo[playerid][pKills] = cache_get_field_content_int(0, "pKills");
PlayerInfo[playerid][pHelper] = cache_get_field_content_int(0, "pHelper");
PlayerInfo[playerid][pJailed] = cache_get_field_content_int(0, "pJailed");
PlayerInfo[playerid][pJailedTime] = cache_get_field_content_int(0, "pJailedTime");
PlayerInfo[playerid][pCaptures] = cache_get_field_content_int(0, "pCaptures");
PlayerInfo[playerid][pTime] = cache_get_field_content_int(0, "pTime");
cache_get_field_content(0, "pRegisterDate", PlayerInfo[playerid][pRegisterDate]);
cache_get_field_content(0, "pLastLogin", PlayerInfo[playerid][pLastLogin]);
SetPlayerCash(playerid, PlayerInfo[playerid][pCash]);
SetPlayerScore(playerid, PlayerInfo[playerid][pScore]);
return 1;
}
I've checked the table and I have the field pLastLogin