Small Issue, Error 19
#1

Right, so I've got this small error, script compiles fine, so on. But when I try to run it, I get this error.

[16:16:29] Script[gamemodes/Envision.amx]: Run time error 19: "File or function is not found"

Now, I've got the main() function, I've got all the newest files. All the files I need is in the #include where they should be. So I've got no idea what's wrong here. Was hoping one of you would know.
Reply
#2

Either you forgot to load necessary plugin(s) or 1/many plugin(s) failed to load.

Load nativechecker plugin (****** it) and add it last in the plugins line (in server.cfg).
Run the server again and the whole server log.
Reply
#3

Now it gives me this

[16:28:22] Error: Function not registered: 'mysql_fetch_row'
[16:28:22] Error: Function not registered: 'mysql_init'

as well as
[16:28:22] Script[gamemodes/Envision.amx]: Run time error 19: "File or function is not found"
Reply
#4

You had to post the whole server log so there'll be no lack of information. I'll assume you loaded the mysql plugin by BlueG when the script uses the plugin by StrickenKid.
Reply
#5

Uhhhh, do you have the plugin by StrickenKid? The website to get it is down, but one of my other scripts uses the stricken plugin, and that's what i dropped into the folder as well.

Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3z, ©2005-2014 SA-MP Team

[16:30:09]
[16:30:09] Server Plugins
[16:30:09] --------------
[16:30:09] Loading plugin: mysql.dll
[16:30:09]

> MySQL plugin R5 successfully loaded.

[16:30:09] Loaded.
[16:30:09] Loading plugin: sscanf.dll
[16:30:09]

[16:30:09] ===============================

[16:30:09] sscanf plugin loaded.

[16:30:09] © 2009 Alex "******" Cole

[16:30:09] 0.3d-R2 500 Players "dnee"

[16:30:09] ===============================

[16:30:09] Loaded.
[16:30:09] Loading plugin: streamer.dll
[16:30:09]

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[16:30:09] Loaded.
[16:30:09] Loaded 3 plugins.

[16:30:09]
[16:30:09] Filterscripts
[16:30:09] ---------------
[16:30:09] Loading filterscript 'gl_actions.amx'...
[16:30:09] Loading filterscript 'gl_realtime.amx'...
[16:30:09] Loading filterscript 'gl_property.amx'...
[16:30:09]
-----------------------------------
[16:30:09] Grand Larceny Property Filterscript
[16:30:09] -----------------------------------

[16:30:09] Loading filterscript 'gl_mapicon.amx'...
[16:30:09] Loading filterscript 'ls_mall.amx'...
[16:30:09] Loading filterscript 'ls_elevator.amx'...
[16:30:09] Loading filterscript 'attachments.amx'...
[16:30:09] Loading filterscript 'skinchanger.amx'...
[16:30:09]
--Admin Player Skin Changer Loaded

[16:30:09] Loading filterscript 'vspawner.amx'...
[16:30:09]
--Admin Vehicle Spawner Loaded

[16:30:09] Loaded 9 filterscripts.

[16:30:09] Reading File: blank
[16:30:09] Reading File: properties/houses.txt
[16:30:09] Reading File: properties/businesses.txt
[16:30:09] Reading File: properties/banks.txt
[16:30:09] Reading File: properties/police.txt
[16:30:09] Script[gamemodes/Envision.amx]: Run time error 19: "File or function is not found"
[16:30:09] Number of vehicle models: 0
Reply
#6

http://forum.sa-mp.com/showpost.php?...&postcount=945

Although I wouldn't recommend you to use that plugin because it's outdated and slow. It's recommended to use the plugin by BlueG but the latest version (R39) with threaded queries. This plugins is also often updated and it's much faster! You'll need to convert the scripts but it's worth. If you're interested:

tutorial about threaded queries: https://sampforum.blast.hk/showthread.php?tid=337810
wiki: https://sampwiki.blast.hk/wiki/MySQL/R33
example script: https://github.com/pBlueG/SA-MP-MySQ...stem-cache.pwn
downloads: https://github.com/pBlueG/SA-MP-MySQL/releases
Reply
#7

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
http://forum.sa-mp.com/showpost.php?...&postcount=945

Although I wouldn't recommend you to use that plugin because it's outdated and slow. It's recommended to use the plugin by BlueG but the latest version (R39) with threaded queries. This plugins is also often updated and it's much faster! You'll need to convert the scripts but it's worth. If you're interested:

tutorial about threaded queries: https://sampforum.blast.hk/showthread.php?tid=337810
wiki: https://sampwiki.blast.hk/wiki/MySQL/R33
example script: https://github.com/pBlueG/SA-MP-MySQ...stem-cache.pwn
downloads: https://github.com/pBlueG/SA-MP-MySQL/releases
Well I don't understand to be honest. Another of my scripts, is using the exact same things, and it launches just fine. Yet this one won't. And this MySQL plugin, is the only one I fully understand and know how to work with.
Reply
#8

You haven't loaded the mysql plugin by StrickenKid so any script that used that plugin shouldn't have worked in the first place so they use the plugin by BlueG.

Believe me, it's worth to use R39 (threaded queries) by BlueG and any help you want with it, other members and I can help you with - you've got nothing to loose.
Reply
#9

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
You haven't loaded the mysql plugin by StrickenKid so any script that used that plugin shouldn't have worked in the first place so they use the plugin by BlueG.

Believe me, it's worth to use R39 (threaded queries) by BlueG and any help you want with it, other members and I can help you with - you've got nothing to loose.
How do I load the plugin then xD? I sound like such a noob, but I've never had this problem before. If my next attempt doesn't work. I'll pop BlueG's into the script, but I honestly don't know how to make anything using that one. And right now I've gotta try to make a login system for an RP script I'm trying to make, which is not going so well right now because, yeah, I'm not good with login systems :S

This plugin has been my best attempt by far, except it won't launch =3
Reply
#10

Like any other plugin, add the name of it in the plugins line in server.cfg and add the plugin file in the plugins folder. And by the way all the other plugins are older versions so it'd be recommended to update to their latest versions.

I also posted an example script for register/login system using the plugin by BlueG in case you want to check it out. You can see what functions do what and how they're used in the wiki page (I also posted that link above). Give 2-3 days to read them well and try to make a simple register/login system with what you learned (okay, if you get any look at the example script doesn't matter, just don't overdo it!).
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)