08.12.2013, 10:12
C:\Users\Davey\Downloads\LuxAdmin.pwn(11213) : warning 203: symbol is never used: "achat"
C:\Users\Davey\Downloads\LuxAdmin.pwn(11213) : warning 203: symbol is never used: "apm"
Can somebody help me fix this
C:\Users\Davey\Downloads\LuxAdmin.pwn(11213) : warning 203: symbol is never used: "apm"
Quote:
CMD:apm(playerid, params[]) { new str[128], str2[128], id; if(sscanf(params,"ds[128]", id, str2)) return SendClientMessage(playerid, red,"USAGE: /apm [id] [message]"); if(IsPlayerConnected(id)) { if(id != playerid) { if(PlayerInfo[playerid][Level] >= 1) { format(str, sizeof(str),"Admin PM to [%d]%s: %s", id, PlayerName2(id), str2); SendClientMessage(playerid, yellow, str); format(str, sizeof(str),"[PM]Admin: %s", str2); SendClientMessage(id, COLOR_PINK, str); PlayerPlaySound(id,1085,0.0,0.0,0.0); } else return SendClientMessage(playerid, red,"You are not a high enough level to use this command"); } else return SendClientMessage(playerid, red,"You cannot PM yourself"); } else return SendClientMessage(playerid, red,"Player is not connected"); return 1; } ================================================== ============ // enum: enum { Adminlevel } new pInfo [MAX_PLAYERS] [PlayerData]; // CMD: CMD:achat(playerid, params[]) { new p2[128], Pna[32]; if(pInfo[playerid] [Adminlevel] < 1) return 0; if( isnull (params)) return SendClientMessage(playerid, COLOR_RED, "/ac [msg]"); GetPlayerName(playerid, Pna, 32); if (pInfo [playerid] [AdminLevel] >= 1 || IsPlayerAdmin(playerid)) { for(new i = 0; i<MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { if(pInfo [i] [Adminlvl] >= 1) { format(p2, 128, "Admin %s (%d): %s", Pna, playerid, params); SendClientMessage(i , -1, p2); } } } } return 1; } |