Commands Help
#1

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;
}
//==================================
Reply
#2

Try to remove the help on the cmd

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

this command is for port to office
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)