13.04.2011, 20:52
Hey I'm Just started learing sscanf and ZCMDS But I have this problem
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:
But I Get this The Error is on Line 203
Код:
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;
}
Peace Out "Basker"
Edit: Now I'll use:
Код:
(Line 203)new Float:x, Float:y, Float:z;
Код:
error 001: expected token: ";", but found "new"


