Run time 19 error file or function is not found
#1

Hello, I have recently been trying to create my won game mode but i have come across a problem, the scrip compiles but when i run it it says run time error 19 file or function is not found


What could cause this problem ?


My plugins are defined in the script and the plguins are in the correct place


pawn Code:
#include <a_samp>
#include <zcmd>
#include <foreach>
#include <sscanf2>
#include <YSI\y_ini>

Thank You


Please Help Me Please
Reply
#2

Post your server_log.
Reply
#3

Quote:
Originally Posted by Xtreme_playa
View Post
Post your server_log.
Wrong thing
Reply
#4

Quote:
Originally Posted by Scripter12345
View Post
pawn Code:
echo Executing Server Config...
lanmode 0
rcon_password ------------
maxplayers 32
port 7777
hostname Server
gamemode0 GM 1
filterscripts
announce 0
query 1
weburl [url]www.sa-mp.com[/url]
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:%S]
Your server_log not your server.cfg !
Reply
#5

Quote:
Originally Posted by Xtreme_playa
View Post
Your server_log not your server.cfg !
Please remove your post quoting mine i dont want people seeing my server cfg


pawn Code:
SA-MP Dedicated Server
----------------------
v0.3d-R2, (C)2005-2011 SA-MP Team

[16:37:09] filterscripts = ""  (string)
[16:37:09]
[16:37:09] Server Plugins
[16:37:09] --------------
[16:37:09]  Loaded 0 plugins.

[16:37:09]
[16:37:09] Ban list
[16:37:09] --------
[16:37:09]  Loaded: samp.ban
[16:37:09]
[16:37:09]
[16:37:09] Filterscripts
[16:37:09] ---------------
[16:37:09]   Loaded 0 filterscripts.

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

Thank You


Please Help Me Please
Reply
#6

Add line plugins sscanf in your server.cfg, create a folder called plugins and place the sscanf plugin in it, into your samp server directory.
Reply
#7

Quote:
Originally Posted by Xtreme_playa
View Post
Add line plugins sscanf in your server.cfg, create a folder called plugins and place the sscanf plugin in it, into your samp server directory.
Delete your post quoting my server cfg please
Reply
#8

Quote:
Originally Posted by Scripter12345
View Post
Delete your post quoting my server cfg please
Did you do that ? Don't go off topic.
Reply
#9

Quote:
Originally Posted by Xtreme_playa
View Post
Did you do that ? Don't go off topic.
Yes it did work


Thank You


Just one more quick question how comes when i do this


pawn Code:
new levels,Nam[MAX_PLAYER_NAME],pname[MAX_PLAYER_NAME],str[128],ID;

It comes up with this


pawn Code:
warning 219: local variable "str" shadows a variable at a preceding level

Like 11 times


Thank You


Please Help Me Please
Reply
#10

Quote:
Originally Posted by Scripter12345
View Post
Yes it did work


Thank You


Just one more quick question how comes when i do this


pawn Code:
new levels,Nam[MAX_PLAYER_NAME],pname[MAX_PLAYER_NAME],str[128],ID;

It comes up with this


pawn Code:
warning 219: local variable "str" shadows a variable at a preceding level

Like 11 times


Thank You


Please Help Me Please
Symbol already defined, this new change to str2 and change all the str function to str2

pawn Code:
new levels,Nam[MAX_PLAYER_NAME],pname[MAX_PLAYER_NAME],str2[128],ID;
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)