invalid expression, assumed zero
#1

HELP!!!!
Quote:

C:\Users\james\Desktop\servimm\gamemodes\Gamemode. pwn(569) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Quote:

if (!strcmp("/open", cmdtext, true, 10))
{
if(IsPlayerLuxAdminLevel(playerid,5))
{
MoveObject(object,1587.690,-1437.827,4.755, 2.50);
SetTimer("close", 7000, 0);//gate will be closed for 7 seconds
SendClientMessage(playerid,COLOR_LGREEN,"You are opening a Gate, and will be closed automaticly..");
else SendClientMessage(playerid, COLOR_RED, "ERROR: You not is Administrator Level 5"); <--- line 569
}
return 1;
}

_______________________
[MES]leader
Reply
#2

Signature fail.

pawn Код:
if(strcmp("/open", cmdtext, true)==0)
    {
        if(IsPlayerLuxAdminLevel(playerid,5))
        {
            MoveObject(object,1587.690,-1437.827,4.755, 2.50);
            SetTimer("close", 7000, 0);//gate will be closed for 7 seconds
            SendClientMessage(playerid,COLOR_LGREEN,"You are opening a Gate, and will be closed automaticly..");
        }else SendClientMessage(playerid, COLOR_RED, "ERROR: You not is Administrator Level 5"); <--- line 569
        return 1;
    }
Reply
#3

Quote:
Originally Posted by Zh3r0
Посмотреть сообщение
Signature fail.
Sentence win.

You were using an "else" statement inside the brackets of the "if" statement, which caused the error.
Reply
#4

thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)