28.10.2014, 20:31
Well I have no clue why you use a string for that if you just could put that in one 32 bit cell (a normal variable in pawn) with bit manipulation
To convert a number from a string you need to subtract the value of '0'
But if you only use 1 or 0 than you could use a check
To convert a number from a string you need to subtract the value of '0'
pawn Код:
PInfo[playerid][FoundTiki][ti] = PInfo[playerid][TikiString][ti] - '0';
pawn Код:
PInfo[playerid][FoundTiki][ti] = (PInfo[playerid][TikiString][ti] == '1');