Run time error 19: "File or function is not found
#1

PHP код:
SA-MP Dedicated Server
----------------------
v0.3x, (C)2005-2013 SA-MP Team
[20:43:57
[
20:43:57Server Plugins
[20:43:57] --------------
[
20:43:57]  Loading pluginstreamer
[20:43:57
*** 
Streamer Plugin v2.6.1 by Incognito loaded ***
[
20:43:57]   Loaded.
[
20:43:57]  Loading pluginsscanf
[20:43:57
[
20:43:57]  ===============================
[
20:43:57]       sscanf plugin loaded.     
[
20:43:57]    (c2009 Alex "******" Cole
[20:43:57]    0.3d-R2 500 Players "dnee"
[20:43:57]  ===============================
[
20:43:57]   Loaded.
[
20:43:57]  Loading pluginmysql
[20:43:57
  > 
MySQL plugin R7 successfully loaded.
[
20:43:57]   Loaded.
[
20:43:57]  Loading pluginWhirlpool
[20:43:58]  
[
20:43:58]  ==================
[
20:43:58]  
[
20:43:58]   Whirlpool loaded
[20:43:58]  
[
20:43:58]  ==================
[
20:43:58]  
[
20:43:58]   Loaded.
[
20:43:58]  Loading pluginnativechecker
[20:43:58]   Loaded.
[
20:43:58]  Loaded 5 plugins.
[
20:43:58
[
20:43:58Ban list
[
20:43:58] --------
[
20:43:58]  Loadedsamp.ban
[20:43:58
[
20:43:58
[
20:43:58Filterscripts
[20:43:58] ---------------
[
20:43:58]   Loading filterscript 'yom_buttons.amx'...
[
20:43:58]   Loading filterscript 'gcustom.amx'...
[
20:43:58]   Loaded 2 filterscripts.
[
20:43:59]    Error: Function not registered'mysql_log'
[20:43:59]    Error: Function not registered'cache_insert_id'
[20:43:59]    Error: Function not registered'cache_affected_rows'
[20:43:59Script[gamemodes/DSRP.amx]: Run time error 19"File or function is not found"
[20:43:59Number of vehicle models
What should i do?

I just updated sscanf to the lates, Im still getting the same error when im trying to start the server

PHP код:
#define SERVER_GM_TEXT "DSRP V1.33.1"
#define mysql_escape_string
#define mysql_errno
#include <a_samp>
#include <a_mysql>    
#include <streamer>
#include <yom_buttons>        
#include <ZCMD>
#include <sscanf2>
#include <foreach>
#include <YSI\y_timers>
#include <YSI\y_utils>
#if defined SOCKET_ENABLED
#include <socket>
#endif
#include <defines.pwn>
#include <enums.pwn>
#include <variables.pwn>
#include <timers.pwn>
#include <functions.pwn>
#include <commands.pwn>
#include <mysql.pwn>
#include <OnPlayerLoad.pwn>
#include <callbacks.pwn>
#include <textdraws.pwn>
#include <streamer.pwn>
#include <OnDialogResponse.pwn>
main() {}
public 
OnGameModeInit()
{
    print(
"Preparing the gamemode, please wait...");
    
g_mysql_Init();
    return 
1;
}
public 
OnGameModeExit()
{
    
g_mysql_Exit();
    return 
1;

here is the whole gm, when i compile it i get 40warnings..

Here are the warnings
PHP код:
C:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\functions.pwn(3135) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(21508) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(21537) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(21685) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(21710) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(22978) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(23082) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(23107) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(23127) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(23154) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(23255) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(23293) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(23492) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(23493) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(25312) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(26596) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(29693) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(31302) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(33564) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(33565) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(33590) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(33591) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(36441) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(36442) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(36572) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(37336) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(49855) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(49874) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(52069) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(52820) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(52831) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(52842) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\commands.pwn(52853) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\mysql.pwn(2587) : warning 203symbol is never used"slotid"
C:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\OnDialogResponse.pwn(138) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\OnDialogResponse.pwn(1116) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\OnDialogResponse.pwn(1252) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\OnDialogResponse.pwn(2406) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\OnDialogResponse.pwn(6730) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\dsrp\pawno\include\OnDialogResponse.pwn(12218) : warning 215expression has no effect
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
40 Warnings

Reply
#2

Check your config file as I can see your gamemode file "DSRP" doesn't match with config file gamemode.
Reply
#3

First of all, update sscanf to its latest version.

In the future, when you get run time error 19, use nativechecker plugin (https://sampforum.blast.hk/showthread.php?tid=249226) so you can know what functions are not registered.

EDIT: R7 of MySQL does not have those functions: mysql_log, cache_insert_id, cache_affected_rows. Those were added later so get the correct version of it.
Reply
#4

It has nativechecker? Just added it, i guess ;O
Reply
#5

Use Mysql Plugin r34 for this one
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)