10.08.2010, 16:53
I get this error
From this line here
Here is the full snippet
Any idea how to sort this?
Код:
(87) : error 003: declaration of a local variable must appear in a compound block
pawn Код:
new bomb - IsValidObject(1252);
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;
}