SA-MP Forums Archive
Commands Help - 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: Commands Help (/showthread.php?tid=675599)



Commands Help - Bojcoo - 16.05.2020

Hi friends


Code:
C:\Users\bojco\OneDrive\Desktop\Angers Community\gamemodes\dimiskov.pwn(52519) : error 003: declaration of a local variable must appear in a compound block
C:\Users\bojco\OneDrive\Desktop\Angers Community\gamemodes\dimiskov.pwn(52520) : error 010: invalid function or declaration
C:\Users\bojco\OneDrive\Desktop\Angers Community\gamemodes\dimiskov.pwn(52521) : error 010: invalid function or declaration
C:\Users\bojco\OneDrive\Desktop\Angers Community\gamemodes\dimiskov.pwn(52522) : error 010: invalid function or declaration
C:\Users\bojco\OneDrive\Desktop\Angers Community\gamemodes\dimiskov.pwn(52527) : error 054: unmatched closing brace ("}")
C:\Users\bojco\OneDrive\Desktop\Angers Community\gamemodes\dimiskov.pwn(52528) : error 010: invalid function or declaration
C:\Users\bojco\OneDrive\Desktop\Angers Community\gamemodes\dimiskov.pwn(52529) : error 010: invalid function or declaration
Pawn compiler 3.10.4	 	 	Copyright © 1997-2006, ITB CompuPhase


7 Errors.
Code:
CMD:portoffice(playerid, params[], help)
	new string[158];
	if(UlogovanProvera[playerid] == 0) return GRESKA(playerid, "Moras se ulogovati da bi koristio ovu komandu!");
	if(AdminDuty[playerid] == 0 && GMDuty[playerid] == 0) return GRESKA(playerid,COLOR_GREY,"Morate biti na Admin & GameMaster duznosti!");
	if(PlayerInfo[playerid]][ xAdmin ] < 7  || PlayerInfo[ xSupporter ] < 1 )
 	{
	SetPlayerPos(playerid, 1824.2367,-1278.0490,120.2656);
	format(string, sizeof(string), "[INFO] %s se portao do offica!", GetName(playerid));
	SendAdminMessage(COLOR_TZUTA, string);
	}
	else SCM(playerid, COLOR_GREY,"[A:RPG]Nemate autorizaciju");
	return 1;
}
//==================================



Re: Commands Help - ChandraLouis - 16.05.2020

Try to remove the help on the cmd

pawn Code:
cmd:portoffice(playerid, params[])
And what is greska?


Re: Commands Help - Bojcoo - 16.05.2020

this command is for port to office