SA-MP Forums Archive
Weird server console bug.. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Weird server console bug.. (/showthread.php?tid=85938)



Weird server console bug.. - Lewwy - 10.07.2009

Hello, my friend recently bought a dedicated server in America for us to run our roleplay script on, it works fine and the samp-server.exe loads up fine and the server is running how it should be. But recently I downloaded all the necessary files from the File Transfer Protocol for our server, and put them onto my home server folder so I could set up a test server, but whenever I run the console it says;

Код:
Script[gamemodes/fc.amx]: Run time error 19: "File or function is not found"
I edited the server.cfg correctly so it matches my home server's functioning.

The file "fc.amx" is in "gamemodes" in the samp-server.exe's directory, but if I load another sample script or a custom one of mine my home server works and loads properly. The fc.pwn script compiles fine, I was wondering if this was just the .exe's issue and if I should re-download, which I doubt I should have to do.
The .amx is 741kb in size if that helps.


Re: Weird server console bug.. - Lewwy - 10.07.2009

When you say a missing plugin, do you mean defined in the server.cfg, but not in the folder?

EDIT: Could you give me an example which would cause this error to occur?


Re: Weird server console bug.. - lavamike - 10.07.2009

It is usually either a missing include, or a missing plugin. Meaning if you have any plugins in your plugins folder (Windows -> .dll and Linux -> .so) you must put them and make sure they are loaded in the server.cfg and make sure they are in the plugins folder. If you don't use any plugins or they are all setup properly then it is most likely an include. If it runs and compiles fine, copy your pawno\includes\ folder to the FTP with all the .inc's

Then, if it still doesn't work make sure your script has no errors OR warnings.



That should fix it.


Re: Weird server console bug.. - Westie - 10.07.2009

Quote:
Originally Posted by Lavamike
...
Just so you know, you do not need to copy over any includes directories to FTP. PAWN is a precompiled scripting language - meaning that everything is included compile time, not at runtime.


Re: Weird server console bug.. - Lewwy - 11.07.2009

I'm saying it works on the dedicated server just fine, possibly because it's Linux, but whenever me or a friend try it on our home server it comes up with a runtime error. I'll see what I can do.


Re: Weird server console bug.. - Westie - 11.07.2009

That might be because you've got the plugin installed on the server, but not the dev.


Re: Weird server console bug.. - Lewwy - 11.07.2009

Alright cheers Westie.


Re: Weird server console bug.. - lavamike - 11.07.2009

Huh? Whenever I don't copy my includes I get the mission function. At least as far as I can remember..


Re: Weird server console bug.. - Lewwy - 11.07.2009

So basically lets say I include a plugin in my script, and use functions from that plugin in my script, but I don't have it running in the server.cfg, this would cause a RunTime error?


Re: Weird server console bug.. - Lewwy - 11.07.2009

Right, I have a big huge problem then.
I can NEVER release or run this script in compatibility with Windows, since a certain someone was banned, their downloads were removed and can no longer be passed around. All I have is .so for Linux.
Is there some sort of converter (lmao) for .so to .dll?