Can't see whats Wrong
#1

Hey I'm Just started learing sscanf and ZCMDS But I have this problem

Код:
CMD:flame(playerid,params[])
	{
	    new player, Float:Pos[3];
	    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,"your are not an admin");
	    if(sscanf(params,"u", player)) return SendClientMessage(playerid,COLOR_RED,"USAGE: /flame [playerid]");
	    if(!IsPlayerConnected(player)) return SendClientMessage(playerid,COLOR_RED,"That Player Is Not Online !");
	    else if(IsPlayerAdmin(playerid))
	    {
	 		GetPlayerPos(player,Pos[0], Pos[1], Pos[2]);
			CreateExplosion(Pos[0], Pos[1], Pos[2], 12, 5);
			SendClientMessage(player,COLOR_RED,"Your have Been Blow away");
			SendClientMessage(playerid,COLOR_BLUE,"Your have Blow up a Player");
			return 1;
	    }
		return 0;
	}
When I'm Compile the script there is no errors but when I'll try to use /Flame It just sends me a SERVER: Unknow Command Can't Figure out what should be wrong ?


Peace Out "Basker"


Edit: Now I'll use:
Код:
(Line 203)new Float:x, Float:y, Float:z;
But I Get this The Error is on Line 203
Код:
error 001: expected token: ";", but found "new"
Reply


Messages In This Thread
Can't see whats Wrong - by Basker101 - 13.04.2011, 20:52
Re: Can't see whats Wrong - by airsoft - 13.04.2011, 21:00
Re: Can't see whats Wrong - by Basker101 - 13.04.2011, 21:08
Re: Can't see whats Wrong - by omer5198 - 13.04.2011, 21:11
Re: Can't see whats Wrong - by airsoft - 13.04.2011, 21:12
Re: Can't see whats Wrong - by Basker101 - 13.04.2011, 21:16
Re: Can't see whats Wrong - by omer5198 - 13.04.2011, 21:17
Re: Can't see whats Wrong - by austin070 - 13.04.2011, 21:18
Re: Can't see whats Wrong - by Basker101 - 13.04.2011, 21:21
Re: Can't see whats Wrong - by austin070 - 13.04.2011, 21:23

Forum Jump:


Users browsing this thread: 2 Guest(s)