error 003
#1

I get this error
Код:
(87) : error 003: declaration of a local variable must appear in a compound block
From this line here

pawn Код:
new bomb - IsValidObject(1252);
Here is the full snippet
pawn Код:
if(!strcmp(cmdtext,"/detonateC4",true))

    {
        if(C4Placed[playerid] == 0)


        {
            SendClientMessage(playerid, COLOR_RED,"You Haven't placed C4");


        }
        if(C4Placed[playerid] != 0)
        new bomb - IsValidObject(1252);
        new Float:bx,Float:by,Float:bz;
        GetObjectPos(bomb,bx,by,bz);
        CreateExplosion(bx,by,bz+1,7,10);
        DestroyObject(bomb);
        C4Placed[playerid =0];
        return 1;

    }
Any idea how to sort this?
Reply


Messages In This Thread
error 003 - by Ritchie999 - 10.08.2010, 16:53
Re: error 003 - by Vince - 10.08.2010, 19:30
Re: error 003 - by JaTochNietDan - 10.08.2010, 19:34
Re: error 003 - by Ritchie999 - 11.08.2010, 01:09
Re: error 003 - by willsuckformoney - 11.08.2010, 01:18
Re: error 003 - by Ritchie999 - 11.08.2010, 01:34
Re: error 003 - by willsuckformoney - 11.08.2010, 02:07
Re: error 003 - by Ritchie999 - 11.08.2010, 15:19
Re: error 003 - by JaTochNietDan - 11.08.2010, 16:20
Re: error 003 - by Ritchie999 - 11.08.2010, 16:43

Forum Jump:


Users browsing this thread: 2 Guest(s)