Weird server console bug..
#1

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.
Reply
#2

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?
Reply
#3

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.
Reply
#4

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.
Reply
#5

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.
Reply
#6

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

Alright cheers Westie.
Reply
#8

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

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?
Reply
#10

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)