Server Crashing after Command
#3

Try cmd .Chance variable admins

CMD:admins(playerid,params[])
{
foreach(Player, i)
{
new level[128],status[200], string[128];

if(PlayerInfo[i][pAdmin] >= 1)
{
switch(PlayerInfo[i][pAdmin])
{
case 1: level = "[Trial Staff Member] ";
case 2: level = "[Junior Moderator] ";
case 3: level = "[Moderator] ";
case 4: level = "[Junior Admin] ";
case 5: level = "[Lead Admin] ";
case 6: level = "[Community Co-Owner] ";
case 7: level = "[Community Owner] ";
}
// Other if ststement removed to stop copying of my main code
format(string, sizeof(string), "%s %s\n", level, GetName(i));
ShowPlayerDialog(playerid, DIALOG_ONLINE_ADMINS, DIALOG_STYLE_LIST, "Online Staff", string, "Close", "");
}
else{
ShowPlayerDialog(playerid, DIALOG_ONLINE_ADMINS, DIALOG_STYLE_LIST, "Online Staff", "[SERVER] Anti-Cheat Is: Administrating", "Close", "");
}
}
return 1;
}
Reply


Messages In This Thread
Server Crashing after Command - by LukaJozo - 12.02.2019, 18:44
Re: Server Crashing after Command - by Itzhak E. - 12.02.2019, 20:38
Re: Server Crashing after Command - by nbx2000 - 12.02.2019, 20:47
Re: Server Crashing after Command - by LukaJozo - 13.02.2019, 11:58
Re: Server Crashing after Command - by Kaliber - 13.02.2019, 12:24
Re: Server Crashing after Command - by LukaJozo - 13.02.2019, 13:54

Forum Jump:


Users browsing this thread: 2 Guest(s)