Wieso kommt dieser Warning?
Warning:
C:\Users\Narushi\Desktop\samp\Sharpadox RL\Sharpadox RL\gamemodes\SharpadoxSelfmade.pwn(1125) : warning 203: symbol is never used: "makeadmin"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
Befehl:
ocmd:makeadmin(playerid,params[])
{
new pID, Adminlevel[20], str[128];
switch(Adminlevel)
{
case 0:{Adminlevel="No-Admin";}
case 1:{Adminlevel="Probe Supporter"}
case 2:{Adminlevel="Supporter"}
case 3:{Adminlevel="Moderator"}
case 4:{Adminlevel="Super Moderator"}
case 5:{Adminlevel="Administrator"}
case 6:{Adminlevel="Server Manager"}
case 7:{Adminlevel="Community Leiter"}
case 8:{Adminlevel="Serverleiter"}
}
if(IsPlayerAdmin(playerid));
{
if(sscanf(params,"u",pID)) return SendClientMessage(playerid,COLOR_GREY,"Benutzung: /makeadmin [ID]");
format(str,sizeof(str),"%s hat dich zum '%s' ernannt!",GetName(playerid),Adminlevel);
SendClientMessage(pID,COLOR_BLUE,str);
return 1;
}
return 1;
}