COMMAND:Explode ._.
#1

i was trying to make a command explode that explode the players -

Here the cmd -

pawn Код:
COMMAND:explode(playerid, params[])
{
        new bombid;
        new fstr[200];
        if (PlayerInfo[playerid][pAdminLevel] < 0 || IsPlayerAdmin(playerid))
   

        if(sscanf(params, "u", bombid)) return SendClientMessage(playerid, COLOR_ERROR, "[USAGE]: /explode [name/id]");
        if(!IsPlayerConnected(bombid)) return SendClientMessage(playerid, COLOR_ERROR, "Player not found.");
        {
            new Float:x,Float:y,Float:z;
            GetPlayerPos(bombid,x,y,z);
            CreateExplosion(x,y,z,6,5);
            CreateExplosion(x+2.5,y,z,6,2.5);
            CreateExplosion(x,y+2.5,z,6,2.5);
            CreateExplosion(x,y,z+2.5,6,2.5);
            SetPlayerHealth(bombid, 0.0);
            format(fstr, sizeof(fstr), "%s (%d) Died. (Unspecified Explosion)", PlayerInfo[bombid][pName], bombid);
            SendClientMessageToAll(-1, fstr);
            SendClientMessage(bombid, -1, "An Admin Exploded You");

        }else{
            SendClientMessage(playerid,COLOR_ERROR,"Unknown Command! type /cmds to see all available commands");
    }
    return 1;
}
The Error Reports - and problems

pawn Код:
(15843) : error 029: invalid expression, assumed zero
(15846) : warning 217: loose indentation
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Line 15843 -
pawn Код:
}else{
-_-

Line 15846
pawn Код:
return 1;
halp me pls i rape+
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)