SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 16/05/2020, 05:55 PM   #1
Bojcoo
Banned
 
Join Date: Mar 2020
Posts: 6
Reputation: 0
Default Commands Help

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 (c) 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;
}
//==================================
Bojcoo is offline   Reply With Quote
Old 16/05/2020, 05:57 PM   #2
ChandraLouis
Banned
 
Join Date: Mar 2013
Location: Indonesia
Posts: 438
Reputation: 37
Default Re: Commands Help

Try to remove the help on the cmd

pawn Code:
cmd:portoffice(playerid, params[])

And what is greska?
ChandraLouis is offline   Reply With Quote
Old 16/05/2020, 06:30 PM   #3
Bojcoo
Banned
 
Join Date: Mar 2020
Posts: 6
Reputation: 0
Default Re: Commands Help

this command is for port to office
Bojcoo is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] Login/Register using ZCMD SSCANF & Y_INI.( Admin commands + VIP System + VIP Commands! ) Zh3r0 Filterscripts 116 09/01/2015 10:57 AM
Every script i install and use commands it says Unknown Commands Hebrith Server Support 0 22/10/2012 02:23 PM
My Filterscript makes it so no server commands work (IE. Commands in the GM) [MM]18240[FMB] Scripting Help 16 18/07/2012 11:46 PM
Transforming zcmd's commands to regular commands nuriel8833 Help Archive 17 08/01/2011 05:41 AM
DCMD Commands not working after adding some ZCMD commands :S [L3th4l] Help Archive 4 20/01/2010 09:57 PM


All times are GMT. The time now is 02:18 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.