File or function not found
#1

Hello, I've been scripting a login system, and once I run my server I get this error:

Код:
[15:42:45] Script[gamemodes/blank.amx]: Run time error 19: "File or function is not found"
[15:42:45] Number of vehicle models: 0
My code is based on this tutorial: https://sampforum.blast.hk/showthread.php?tid=597639

What can it be? thanks
Reply
#2

Are plugins loading fine? Also are you loading all required plugins? Show us includes of your fs and full server log.
Reply
#3

You need Whirlpool.
Reply
#4

Do you have all the required plugins installed? This particular tutorial requires the Whirlpool plugin and the YSI library, as mentioned in the thread.

Quote:
Necessities

- The YSI library: https://sampforum.blast.hk/showthread.php?tid=570883
- Whirlpool: https://sampforum.blast.hk/showthread.php?tid=570945
- A 'Users' folder in 'scriptfiles'.

Make sure you meet all those requirements.
Reply
#5

Hello.

When you don't know which plugin you left out then you can use the nativechecker plugin.
Notice: The nativechecker plugin must be the last plugin in the "plugins" row in server.cfg.
Reply
#6

Quote:
Originally Posted by iLearner
Посмотреть сообщение
Are plugins loading fine? Also are you loading all required plugins? Show us includes of your fs and full server log.
Код:
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#include <YSI\y_ini>

//whirlpool?
native WP_Hash(buffer[],len,const str[]);
Server Log
Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[16:51:43] 
[16:51:43] Server Plugins //if i remove whirlpool everything works fine
[16:51:43] --------------
[16:51:43]  Loading plugin: sscanf2
[16:51:43]   Failed.
[16:51:43]  Loading plugin: streamer
[16:51:43]   Failed.
[16:51:43]  Loading plugin: Whirlpool
[16:51:43]   Failed.
[16:51:43]  Loaded 0 plugins.

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

[16:51:43]   Loading filterscript 'gl_mapicon.amx'...
[16:51:43]   Loading filterscript 'ls_elevator.amx'...
[16:51:43]   Loading filterscript 'attachments.amx'...
[16:51:43]   Loading filterscript 'skinchanger.amx'...
[16:51:43] 
--Admin Player Skin Changer Loaded

[16:51:43]   Loading filterscript 'vspawner.amx'...
[16:51:43] 
--Admin Vehicle Spawner Loaded

[16:51:43]   Loading filterscript 'map.amx'...
[16:51:43] 
--------------------------------------
[16:51:43] PALOMINO CREEK ANONYMOUS RP
[16:51:43] --------------------------------------

[16:51:43]   Loaded 9 filterscripts.

[16:51:43] Reading File: blank
[16:51:43] Reading File: properties/houses.txt
[16:51:43] Reading File: properties/businesses.txt
[16:51:43] Reading File: properties/banks.txt
[16:51:43] Reading File: properties/police.txt
[16:51:43] Script[gamemodes/ANORP.amx]: Run time error 19: "File or function is not found"
[16:51:43] Number of vehicle models: 0

Quote:
Originally Posted by GoldenLion
Посмотреть сообщение
You need Whirlpool.
I have it I guess..

Quote:
Originally Posted by Threshold
Посмотреть сообщение
Do you have all the required plugins installed? This particular tutorial requires the Whirlpool plugin and the YSI library, as mentioned in the thread.
Make sure you meet all those requirements.
I've downloaded everything it mentioned in the thread, I got a little bit confused where to install whirlpool, and where to extract..but I think I figured that out, now it just gives me this errors. P.S. - script compiles fine



Quote:
Originally Posted by Mencent
Посмотреть сообщение
Hello.

When you don't know which plugin you left out then you can use the nativechecker plugin.
Notice: The nativechecker plugin must be the last plugin in the "plugins" row in server.cfg.
What's native checker? :O
Reply
#7

nativechecker gives you more information about the problem:
https://sampforum.blast.hk/showthread.php?tid=249226

But I can see that your plugins don't load correct.
PHP код:
[16:51:43]  Loading pluginsscanf2
[16:51:43]   Failed.
[
16:51:43]  Loading pluginstreamer
[16:51:43]   Failed.
[
16:51:43]  Loading pluginWhirlpool
[16:51:43]   Failed.
[
16:51:43]  Loaded 0 plugins
Do you sure that you put this correct into the server.cfg and have all plugins and includes in the right folders?
Reply
#8

Also the plugin is 'sscanf', not 'sscanf2'. The include is 'sscanf2'.
Reply
#9

Is it linux? Make sure you add .so on plugins on server.cfg(Ex : Whirlpool.so)
Reply
#10

its not linux, and uhm yea..i kinda tried everything you guys said..
shall i redownload new server and plugins?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)