09.02.2013, 16:22
pawn Код:
CMD:a(playerid, params[])
{
if(Player[playerid][pAdminLevel] >= 1)
{
if(!isnull(params))
{
SendClientMessage(playerid, 0x505000FF, "USAGE : /a [text]");
}
else
{
new string[128];//This is the errors line
if(Player[playerid][pAdminLevel] == 1) format(string, sizeof(string), "[Admin Chat] {kleur}Retired Admin{FFFFFF} %s: %s", GetName(playerid, params);
else if(Player[playerid][pAdminLevel] == 2) format(string, sizeof(string), "[Admin Chat] {kleur}Junior Admin{FFFFFF} %s: %s", GetName(playerid, params);
else if(Player[playerid][pAdminLevel] == 3) format(string, sizeof(string), "[Admin Chat] {kleur}General Admin{FFFFFF} %s: %s", GetName(playerid, params);
else if(Player[playerid][pAdminLevel] == 4) format(string, sizeof(string), "[Admin Chat] {kleur}Senior Admin{FFFFFF} %s: %s", GetName(playerid, params);
else if(Player[playerid][pAdminLevel] == 5) format(string, sizeof(string), "[Admin Chat] {kleur}Head Admin{FFFFFF} %s: %s", GetName(playerid, params);
else if(Player[playerid][pAdminLevel] == 6) format(string, sizeof(string), "[Admin Chat] {kleur}Server Owner{FFFFFF} %s: %s", GetName(playerid, params);
SendToAdmins(0xF2FF00FF, string);
}
}
return 1;
}