12.12.2012, 05:56
So i made a enum for players but the problem is that when i load from DB the values that should be in that var. named for example Leader instead of 1 or 0 or 2 or whatever number it loads 48,46,49 or values like this.. but if i do a
new Leader[MAX_PLAYERS]; it works perfectly.. what could be the problem
Loading :
But if do this :
It works perfectly
new Leader[MAX_PLAYERS]; it works perfectly.. what could be the problem
Loading :
pawn Код:
cache_get_field_content(0, "Leader", temp), PlayerData[playerid][pLeader] = strval(temp);
cache_get_field_content(0, "Member", temp), PlayerData[playerid][pMember] = strval(temp);
pawn Код:
cache_get_field_content(0, "Leader", temp), Leader[playerid] = strval(temp);
cache_get_field_content(0, "Member", temp), Member[playerid] = strval(temp);