14.11.2012, 22:08
Код:
CMD:kick(playerid, params[]) { new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1]; new id, reason[126]; if (sscanf(params, "us[126]", id, reason)) return SendClientMessage (playerid, -1, "Usage: /kick [ID] [text]"); GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s(%d) has been Kick by %s(%d). Reason: %s .", name, id, reason); Kick(id); }
Код:
E:\Castaway Island Roleplay Server\Castaway Island Roleplay Server Files\gamemodes\CI-RP.pwn(599) : warning 209: function "cmd_kick" should return a value Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.