Help: /explode command ERROR
#1

Hello!

Here is my code of /explode command, but when I compile it, I get 1 ERROR and 1 WARNING.

CODE:

PHP код:
CMD:explode(playeridparams[])
{
    if(
gPlayerInfo[playerid][PLAYER_LEVEL] < 3)return SendClientMessage(playeridCOLOR_RED"You are not allowed to use this command!");
    new 
string[128], IDFloat:xFloat:yFloat:z
    if(
sscanf(params"u"ID)) SendClientMessage(playeridCOLOR_RED"Usage: /explode [playerid/name]");
    else if(!
IsPlayerConnected(ID)) SendClientMessage(playeridCOLOR_RED"ERROR: This player is not connected.");
    else 
    {
        
GetPlayerPos(IDxyz); 
        
CreateExplosion(xyz1210.0); 
        
format(string,sizeof(string), "You have exploded %s(%d)."PlayerName(ID), ID); 
        
SendClientMessage(playeridCOLOR_PURPLEstring);
    }
    return;

Reply


Messages In This Thread
Help: /explode command ERROR - by Areax - 05.04.2013, 15:30
Respuesta: Help: /explode command ERROR - by trollkemada - 05.04.2013, 15:44
Re: Help: /explode command ERROR - by Areax - 05.04.2013, 15:51
Re: Help: /explode command ERROR - by BodyBoardVEVO - 05.04.2013, 15:54
Re: Help: /explode command ERROR - by SilverKiller - 05.04.2013, 15:54
Re: Help: /explode command ERROR - by Areax - 05.04.2013, 15:56

Forum Jump:


Users browsing this thread: 1 Guest(s)