05.11.2011, 00:22
pawn Код:
new intTmp;
INI_Int("AdminDuty", intTmp);
P_DATA[playerid][pADuty] = !!intTmp;
Make the P_DATA pADuty a boolean!
edit:
pawn Код:
#define IntToBool(%1,%2) (%1=!!%2)
new intTmp;
INI_Int("AdminDuty", intTmp);
P_DATA[playerid][pADuty] = !!intTmp;
#define IntToBool(%1,%2) (%1=!!%2)