help again
#1

When i compile i got this error:
Код:
(373) : warning 213: tag mismatch
On Globals
pawn Код:
new InArea[MAX_PLAYERS];
Function
pawn Код:
if(InArea[playerid] == true)
        {
            SendClientMessage(playerid,COLOR_DARKRED,"You can't leave the area!");
            return 1;
        }
anyone wanna help me with this?
thanks
Reply
#2

Oh sorry for posting xD
i solved it now
pawn Код:
if(InArea[playerid] == 1)
        {
            SendClientMessage(playerid,COLOR_DARKRED,"You can't leave the area!");
            return 1;
        }
I didn't remember that i can use 1
Reply
#3

To use true/false you need to use a 'bool' tag before the variable's name.
Reply
#4

Код:
if(InArea[playerid] == True)
        {
            SendClientMessage(playerid,COLOR_DARKRED,"You can't leave the area!");
            return true;
        }
Reply
#5

I just fixed it awhile ago, nvm.

but anyway thanks for efforts
Reply
#6

Quote:
Originally Posted by [RSS]Cops_sandu
Посмотреть сообщение
Код:
if(InArea[playerid] == True)
        {
            SendClientMessage(playerid,COLOR_DARKRED,"You can't leave the area!");
            return true;
        }
'True' will not work because it is treated as a variable by the compiler unless you '#define True true'. And he doesn't have the 'bool' tag so either way your code is invalid.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)