Enum not working good with mysql.. or what?
#1

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 :
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);
But if do this :
pawn Код:
cache_get_field_content(0, "Leader", temp), Leader[playerid] = strval(temp);
cache_get_field_content(0, "Member", temp), Member[playerid] = strval(temp);
It works perfectly
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)