A error? +REP
#1

Hello guys, I made a /admins command, everything worked untill i returned the cmd.

Код 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;
	}
The error:

Код HTML:
error 010: invalid function or declaration
Reply
#2

What line is the error exactly at?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)