SA-MP Forums Archive
A error? +REP - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: A error? +REP (/showthread.php?tid=475315)



A error? +REP - Lynet - 12.11.2013

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



Re: A error? +REP - Loot - 12.11.2013

What line is the error exactly at?