08.08.2010, 19:35
Код:
dcmd(ban,3,cmdtext); dcmd_ban(playerid, params[]) { new id, reason[64]; if (sscanf(params, "uz", id, reason)) SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/ban <playerid/partname> <reason (optional)>\""); else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "Player not found"); else { BanEx(id, reason); format(reason, sizeof (reason), "You have been banned%s%s.", reason[0] ? (" for: ") : (""), reason); SendClientMessage(id, 0xFF0000AA, reason); SendClientMessage(playerid, 0x00FF00AA, "Player banned"); } return 1; } return 0; }
Quote:
C:\Users\james\Desktop\Untitled.pwn(7 ![]() C:\Users\james\Desktop\Untitled.pwn(79) : error 017: undefined symbol "dcmd_ban" C:\Users\james\Desktop\Untitled.pwn(84) : error 017: undefined symbol "sscanf" C:\Users\james\Desktop\Untitled.pwn(93) : warning 217: loose indentation C:\Users\james\Desktop\Untitled.pwn(95) : warning 225: unreachable code C:\Users\james\Desktop\Untitled.pwn(95) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors. |
<quit adding your signature to posts but change it in user CP instead and do not add 800KB .gif's as the limit is 350KB>