12.11.2013, 13:09
Hello guys, I made a /admins command, everything worked untill i returned the cmd.
The error:
Код HTML:
CMD:admins(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid,0xC0C0C0FF,"Admins Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new level = PInfo[i][Level];
new duty = PInfo[i][Duty];
new string[128];
if(PInfo[i][Level] >= 1)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(i,name,sizeof(name));
if(duty == 0)
{
format(string,sizeof(string),"(Level: %d) %s (ID: %d) Adminduty: No",level,name,i);
SendClientMessage(playerid,0xC0C0C0FF,string);
}
if(duty == 1)
{
format(string,sizeof(string),"(Level: %d) %s (ID: %d) Adminduty: Yes",level,name,i);
SendClientMessage(playerid,COLOR_GREEN,string);
}
}
}
}
}
}
return 1;
}
Код HTML:
error 010: invalid function or declaration