C:\Documents and Settings\allenloza\My Documents\Downloads\Compressed\samp03dsvr_R2_win32 \gamemodes\Gangwar.pwn(402) : error 017: undefined symbol "X" C:\Documents and Settings\allenloza\My Documents\Downloads\Compressed\samp03dsvr_R2_win32 \gamemodes\Gangwar.pwn(403) : error 021: symbol already defined: "SendClientMessageToAll" C:\Documents and Settings\allenloza\My Documents\Downloads\Compressed\samp03dsvr_R2_win32 \gamemodes\Gangwar.pwn(404) : error 010: invalid function or declaration
CMD:nuke(playerid,params[]) CreateExplosion(Float:X,Float:Y,Float:Z,Float:Radius); SendClientMessageToAll(0x58AB54FF, "%s has used a command /nuke and killed him/herself!"); return 1;
CMD:nuke(playerid,params[])
{
new
Float:X,
Float:Y,
Float:Z
;
GetPlayerPos(playerid, X,Y,Z);
CreateExplosion(Float:X,Float:Y,Float:Z,Float:Radius);
new str[100], n[24]; GetPlayerName(playerid, n, 24);
format(str, sizeof(str), "%s has used a command /nuke and killed him/herself!", n);
SendClientMessageToAll(0x58AB54FF, str);
return 1;
}
pawn Код:
|
CreateExplosion(X, Y, Z, 10.0);//change 10.0 to your desired blast radius
Should be:
pawn Код:
|
CreateExplosion(X, Y, Z, 7, 10.0);