PAWN:error 19

blackHat

Expert
Joined
Jul 28, 2013
Messages
930
Reaction score
2
hello, i just installed a gamemode and open it and compile it again and it didn't so i found the problem with includes and i changed it from
Code:
#include <sscanf>
TO
Code:
#include <sscanf2>

and it compiled successfully

then i run the server and i get this massage:
Script[gamemodes/tdm2.amx]: Run time error 19: "File or function is not found"

why is that , tdm2 and tdm2.amx are both in gamemodes folder


i searched abit and found someone fixed by include the plugins into server.cfg

HOW i can include it ?

this is my cfg
Code:
echo Executing Server Config...
lanmode 0
rcon_password 123
maxplayers 10
port 7777
hostname TEAM DEATHMATCH
gamemode0 tdm2 1
filterscripts gl_actions gl_realtime gl_property gl_mapicon ls_mall ls_elevator attachments skinchanger vspawner
announce 0
query 1
chatlogging 0
weburl 
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:%S]
plugins  zcmd
plugins  sscanf2
plugins  YSI
plugins  YSI\y_ini

you see i add
plugins PluginName
is this right?

and i still get errors , what is wrong  :yuno:

this is the script
http://samp-scripts.com/post/17137/Team_Deadmatch_v0.2/finelaq/gamemodes/deathmatch
 

Xer

Well-known member
Joined
May 11, 2013
Messages
256
Reaction score
0
You Should Not Rename The #include <sscanf> in the  GM.

just rename the include file to "sscanf"

also that error is showing if u put it in wrong place. put any includes in YOUR-SERVER-FOLDER/pawno/include" not in "YOUR-SERVER-FOLDER/includes
 

Bornstellar

Active member
Joined
Feb 20, 2014
Messages
25
Reaction score
0
Location
Eridanus II
no your cfg is wrong you use only one plugin line like this:


plugins streamer sscanf Whirlpool
 

Xer

Well-known member
Joined
May 11, 2013
Messages
256
Reaction score
0
zcmd
sscanf2
YSI\y_ini
They Are not plugins, they are includes
 

Xer

Well-known member
Joined
May 11, 2013
Messages
256
Reaction score
0
Here A Pre-made pawno and pugins folder  :urtheman:

remove the existing pawno folder and plugins folder.
 

Attachments

  • script.rar
    1.6 MB · Views: 43

Dady

Active member
Joined
Jul 25, 2013
Messages
35
Reaction score
0
Add sscanf2 tp plugins AND includes, and in server.fcg, add it in server.cfg also
 

0B36

Expert
Joined
Jan 6, 2014
Messages
1,324
Reaction score
8
It's funny and surprising that you're able to code and script in CLEO and yet you can't figure out this kind of issue.

Anyways, error 19 usually means when a function inside the script is not registered on sa-mp server and is from outside meaning a plugin which hasn't been loaded or has failed to load. Use nativechecker plugin to determine which one is producing this error.

NC - http://forum.sa-mp.com/showthread.php?t=249226

If you're going to code gamemodes in PAWN, I strongly suggest you browse the sa-mp forums, you will learn a lot from there.

Your server.cfg is wrongly configured, zcmd and YSI are script includes NOT plugins, also load plugins in one line, not separately.

Example

Code:
echo Executing Server Config...
lanmode 0
rcon_password 123
maxplayers 10
port 7777
hostname TEAM DEATHMATCH
gamemode0 tdm2 1
filterscripts gl_actions gl_realtime gl_property gl_mapicon ls_mall ls_elevator attachments skinchanger vspawner
announce 0
query 1
chatlogging 0
weburl 
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:%S]
plugins  sscanf2 "rest of the plugins name here"

Last but not the least, only upload .amx file as that's the binary code for the sa-mp server to read from, uploading .pwn is not considerably good since incase your server or the machine gets hacked, someone will directly get their hands on the .pwn file and your gamemode will be stolen and might be uploaded on the Internet if it is a custom created by yourself.
 

tamer123tamer

Member
Joined
Jan 28, 2024
Messages
8
Reaction score
0
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.DL-R1, (C)2005-2018 SA-MP Team


Server Plugins
--------------
Loading plugin: sscanf
Failed.
Loading plugin: streamer
Failed.
Loading plugin: Whirlpool

==================

Whirlpool loaded

==================

Loaded.
Loaded 1 plugins.


Started server on port: 7778, with maxplayers: 50 lanmode is OFF.


Filterscripts
---------------
Loading filterscript 'yom_buttons.amx'...
Loading filterscript 'ls_beachside.amx'...


|---------------------------------------------------
|--- LS BeachSide Filterscript
|-- Script v1.03
|-- 19th April 2015
|---------------------------------------------------
|-- LS BeachSide Building Elevator created
|---------------------------------------------------
Loading filterscript 'ls_apartments1.amx'...


|---------------------------------------------------
|--- LS Apartments 1 Filterscript
|-- Script v1.02
|-- 5th February 2015
|---------------------------------------------------
|-- LS Apartments 1 Building object created
|-- LS Apartments 1 Car Park object created
|-- LS Apartments 1 Elevator created
|---------------------------------------------------
Loading filterscript 'mapping/FurnitureSystem.amx'...
Loading filterscript 'mapping/Gang.amx'...
Loading filterscript 'mapping/PlayerExteriors.amx'...
Loading filterscript 'mapping/PlayerInteriors.amx'...
Loading filterscript 'mapping/Server.amx'...
Loaded 8 filterscripts.

Script[gamemodes/NGRP.amx]: Run time error 19: "File or function is not found"
Number of vehicle models: 0
 

tamer123tamer

Member
Joined
Jan 28, 2024
Messages
8
Reaction score
0
I am trying to run Next Generation RolePlay 0.3 Version, server start without any gamemode "UNKNOW"
There is an error number 19, is there is anyone who can help with this issue
 

tamer123tamer

Member
Joined
Jan 28, 2024
Messages
8
Reaction score
0
That is the server.cfg

echo Executing Server Config...
lanmode 0
rcon_password 81
maxplayers 50
port 7778
hostname Next Generation Roleplay (0.3)
gamemode0 NGRP
filterscripts yom_buttons ls_beachside ls_apartments1 mapping/FurnitureSystem mapping/Gang mapping/PlayerExteriors mapping/PlayerInteriors mapping/Server
plugins sscanf streamer Whirlpool
announce 1
chatlogging 0
weburl www.sa-mp.com
onfoot_rate 80
incar_rate 80
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 10
logtimeformat [%H:%M:%S]
language English
useartwork 1
sleep 1
mtu 1400[/CODE]
 
Top