22.06.2011, 21:23
i can't found the problem ... that's relay strange the command don't work properly ... any one know where the problem come from ?
Код:
CMD:report(playerid, params[]) { new reason[50], giveplayerid, sendername[24], str3[128], PlayerName[24], file[128]; if(sscanf(params, "us[32]", giveplayerid, reason)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /report [playerid] [reason]"); if(!IsPlayerConnected(giveplayerid)) return 1; GetPlayerName(playerid, sendername, 20); GetPlayerName(giveplayerid, PlayerName, sizeof(PlayerName)); format(file, 128, USER_FILE, PlayerName); format(str3, 128, "%s reported by: %s Reason: %s",PlayerName, sendername, reason); SendClientMessage(playerid, 0xFFFFFFFF, "thanks for reporting"); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(GetAdminLevel(playerid) >= 1|| IsPlayerAdmin(playerid)) SendClientMessage(i, COLOR_RED, str3); } } return 0; }