14.04.2011, 13:44
Okay so this is my /explode CMD, with ZCMD & sscanf
errors I have:
Line of error:
but I see nothing wrong. why I get error?
pawn Код:
CMD:explode(playerid, params)
{
if(PlayerInfo[playerid][pAdminLevel] >= 2)
{
new string[128], id, Float:x, Float:y, Float:z, name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
GetPlayerPos(id, Float:x, Float:y, Float:z);
if(sscanf(params, "u", id)) return SendClientMessage(playerid, -1, "USAGE: /explode [id/partofname]");
CreateExplosion(Float:x, Float:y, Float:z, 0, 30);
SendClientMessage(id, grey, " You were exploded");
format(string, sizeof(string), "You just exploded %s", name);
SendClientMessage(playerid, LIGHTBLUE, string);
return 1;
}
return 1;
}
pawn Код:
C:\Users\Max\Desktop\GTA San Andreas\samp03csvr_win32\filterscripts\ColdAdmin.pwn(530) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
pawn Код:
if(sscanf(params, "u", id)) return SendClientMessage(playerid, -1, "USAGE: /explode [id/partofname]");