10.11.2010, 00:20
pawn Код:
#include <a_samp>
#define FILTERSCRIPT
#define COLOR_RED 0xFF0000AA
CMD:idiot(playerid, params[])
{
new
otherid,
oName[MAX_PLAYER_NAME],
string[64]
;
if (!IsPlayerAdmin(playerid)) return 0;
if(sscanf(params, "u", otherid)) return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /Idiot [id]");
GetPlayerName(playerid, oName, sizeof(oName));
format(string, sizeof(string), "**(IDIOT)** %s <-- Is an idiot!", oName);
SendClientMessageToAll(COLOR_RED, string);
return 1;
}
pawn Код:
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\Idiot.pwn(10) : warning 203: symbol is never used: "idiot"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.