Boolian variables
#1

Hello everyone.
I have a problem with setting boolian variables in a dini file.
I have this:
pawn Код:
enum locinfo
{
    LocNumber,
    Float:LocX,
    Float:LocY,
    Float:LocZ,
    Float:LocA,
    LocInterior,
    LocCreator[MAX_PLAYER_NAME],
    Bool:AvailableTeleport,
}
And whenever I use this;
pawn Код:
LocInfo[strlen(tmp)][AvailableTeleport] = 0;
or this:
pawn Код:
LocInfo[strlen(tmp)][AvailableTeleport] = 1;
I get a tag mismatch error.
But I don't know what will be saved in the file incase I will change the 1 and 0 to true and false.
+Which strval do I use to boolian arguments? for example:
pawn Код:
LocInfo[id][AvailableTeleport] = strval(Argument[7]);
Please help
Thanks
Reply


Messages In This Thread
Boolian variables - by nuriel8833 - 02.06.2011, 12:10
AW: Boolian variables - by Nero_3D - 02.06.2011, 12:39
Re: Boolian variables - by Sergei - 02.06.2011, 13:05
Re: Boolian variables - by Raimis_R - 02.06.2011, 13:30
Re: Boolian variables - by nuriel8833 - 02.06.2011, 13:36
Re: Boolian variables - by nuriel8833 - 03.06.2011, 09:12
Re: Boolian variables - by nuriel8833 - 04.06.2011, 12:18
AW: Boolian variables - by Nero_3D - 04.06.2011, 13:49
Re: Boolian variables - by Sergei - 04.06.2011, 16:49

Forum Jump:


Users browsing this thread: 5 Guest(s)