SA-MP Forums Archive
Server Problem - 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: Server Problem (/showthread.php?tid=286365)



Server Problem - Kostas' - 28.09.2011

I changed Admin System, and I download 0Admin V1.1
https://sampforum.blast.hk/showthread.php?tid=255513
I did what the topic said:
Installation
Extract everything from the .rar file into a folder.
Copy files from folder includes into yourserver/pawno/includes.
Copy the .dll files from the folder plugins into yourserver/plugins.
Open scriptfiles folder from your server folder and create a folder named 0Admin (WITH LETTER CAPS 'A').
Inside scriptfiles/0Admin create the following folders:
Logs
Stats
Go to your server directory and open server.cfg.
Search for line filterscripts and add 0Admin in front of that line.
Example:
filterscripts 0Admin script1 script2
Same thing on the line plugins. Add the following to that lines.
plugins sscanf whirlpool regex
Save file, open server, enjoy.

And i saw this then

This system comes with an include for your gamemode!
Go into your gamemode and add
pawn Код:
#include 0Admin_F
When I compiled my gamemode, I got this

It says this but this line has only from gates. And if you change line, always says line 63 has the problem.
What to do to fix it. Whithout compile, I can't open the samp-server.exe
Why this appears


Re: Server Problem - Kingunit - 28.09.2011

Probably a missing ';' it's something like this:
pawn Код:
Print("Hi bro")
// That's wrong.

Print("Hi bro");
// That's correct.



Re: Server Problem - Kostas' - 28.09.2011

On my gamemode the Print is correct
pawn Код:
main()
{
    print("\n----------------------------------");
    print(" Anti-Knots Server by Kostas");
    print("----------------------------------\n");
}
So where to search for it?


Re: Server Problem - Kingunit - 28.09.2011

The error isn't inside the gamemode. It's in a include called: "y_functions.inc". So open that one and goto the line.


Re: Server Problem - Markx - 28.09.2011

Quote:
Originally Posted by Kingunit
Посмотреть сообщение
Probably a missing ';' it's something like this:
pawn Код:
Print("Hi bro")
// That's wrong.

Print("Hi bro");
// That's correct.
"Print" is written with a small "p"

pawn Код:
print("Hi bro");



Re: Server Problem - Kostas' - 28.09.2011

I don't have any y_functions.inc, I search the whole C: System


Re: Server Problem - Kingunit - 28.09.2011

Quote:
Originally Posted by Markx
Посмотреть сообщение
"Print" is written with a small "p"

pawn Код:
print("Hi bro");
Didn't noticed that, but I think the message is clearly to understand the fault.

// Include is saved in the PAWN folder > includes.


Re: Server Problem - Jafet_Macario - 28.09.2011

It's "y_funcinc.inc" not "y_functions.inc".


Re: Server Problem - Kostas' - 28.09.2011

I have a folder on PAWN folder > includes > YSI folder
I search there, the only found is this >y_funcinc.inc

It contains this
Код:
/*----------------------------------------------------------------------------*-
					===============================
					 y_funcinc - Fix SYSREQ.C bugs
					===============================
Description:
	Calls functions which are used in SYSREQ.C calls before they are used.  The
	compiler crashes if the functions are not used in an included function
	before being used in a SYSREQ.C call as the function is not in the native
	functions table.
Legal:
	Version: MPL 1.1
	
	The contents of this file are subject to the Mozilla Public License Version 
	1.1 (the "License"); you may not use this file except in compliance with 
	the License. You may obtain a copy of the License at 
	http://www.mozilla.org/MPL/
	
	Software distributed under the License is distributed on an "AS IS" basis,
	WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
	for the specific language governing rights and limitations under the
	License.
	
	The Original Code is the SA:MP script information include.
	
	The Initial Developer of the Original Code is Alex "******" Cole.
	Portions created by the Initial Developer are Copyright © 2008
	the Initial Developer. All Rights Reserved.
	
	Contributors:
		ZeeX, koolk
	
	Thanks:
		Peter, Cam - Support.
		ZeeX - Very productive conversations.
		koolk - IsPlayerinAreaEx code.
		TheAlpha - Danish translation.
		breadfish - German translation.
		Fireburn - Dutch translation.
		yom - French translation.
		50p - Polish translation.
		Zamaroht - Spanish translation.
		Dracoblue, sintax, mabako, Xtreme, other coders - Producing other modes
			for me to strive to better.
		Pixels^ - Running XScripters where the idea was born.
		Matite - Pestering me to release it and using it.
	
	Very special thanks to:
		Thiadmer - PAWN.
		Kye/Kalcor - SA:MP.
		SA:MP Team past, present and future - SA:MP.
Version:
	1.0
Changelog:
	06/08/10:
		First version
-*----------------------------------------------------------------------------*/

forward _@_y_funcinc_@_();
public _@_y_funcinc_@_()
{
	// This function calls any functions used in assembly code in YSI to ensure
	// that they are included in the native function table.
	printf("");
	new _funcinc_a[1 char];
	strunpack(_funcinc_a, "");
}



Re: Server Problem - Kingunit - 28.09.2011

Strange, are you sure it's updated and are you sure that everything is in the right folder?