02.06.2011, 13:36
Quote:
if you convert true to a number it will be 1
if you convert false to a number it will be 0 if you convert an integer to boolean everything not 0 will be true and 0 will be false If you save an boolean it will save it was 1 or 0 And than if you load the number you will get 1 or 0 Just put a bool: before it to convert it back again pawn Код:
pawn Код:
pawn Код:
|
But how will it solve my errors? If I do 0 and 1 I get warnings and if I do true/false it will cause troubles reading from the file.
Quote:
LocInfo[strlen(tmp)][AvailableTeleport] = false;
LocInfo[strlen(tmp)][AvailableTeleport] = true; LocInfo[id][AvailableTeleport] = !!strval(Argument[7]); And it's called boolean. |
Thank you for noticing that