Run time error 19 - HELP please
#1

So hi guys,
Recently I've got an awesome gamemode and i have some problems.
First of all, I had this problem in pawno but i solved it by adding the newest a_samp.inc.
The problem is with SendDeathMessageToPlayer.
So how I said, I first had this problem in pawno and I solved it, and now i see that the console shows the same thing.

Log
[spoiler]SA-MP Dedicated Server
----------------------
v0.3z, ©2005-2014 SA-MP Team

[17:58:47] filterscripts = "" (string)
[17:58:47]
[17:58:47] Server Plugins
[17:58:47] --------------
[17:58:47] Loading plugin: mysql
[17:58:47] >> plugin.mysql: R34 successfully loaded.
[17:58:47] Loaded.
[17:58:47] Loading plugin: streamer
[17:58:47]

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

[17:58:47] Loaded.
[17:58:47] Loading plugin: sscanf
[17:58:47]

[17:58:47] ===============================

[17:58:47] sscanf plugin loaded.

[17:58:47] Version: 2.8.1

[17:58:47] © 2012 Alex "******" Cole

[17:58:47] ===============================

[17:58:47] Loaded.
[17:58:47] Loading plugin: crashdetect
[17:58:47] CrashDetect v4.13 is OK.
[17:58:47] Loaded.
[17:58:47] Loaded 4 plugins.

[17:58:47]
[17:58:47] Filterscripts
[17:58:47] ---------------
[17:58:47] Loaded 0 filterscripts.

[17:58:47] [debug] Run time error 19: "File or function is not found"
[17:58:47] [debug] SendDeathMessageToPlayer
[17:58:47] [debug] Run time error 19: "File or function is not found"
[17:58:47] [debug] SendDeathMessageToPlayer
[17:58:47] Script[gamemodes/saints.amx]: Run time error 19: "File or function is not found"
[17:58:47] Number of vehicle models: 0 [/spoiler]

So that File or function is not found with SendDeathMessageToPlayer is the problem, but I don't know where.
Reply
#2

There is a plugin you are using but you didn't add it to server.cfg.
Download nativechecker and add to "plugins nativechecker" sever.cfg, then it will send you what plugin you need.
Reply
#3

Don't see how it helped but here's the new log.

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

[18:20:24] filterscripts = "" (string)
[18:20:24]
[18:20:24] Server Plugins
[18:20:24] --------------
[18:20:24] Loading plugin: mysql
[18:20:24] >> plugin.mysql: R34 successfully loaded.
[18:20:24] Loaded.
[18:20:24] Loading plugin: streamer
[18:20:24]

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

[18:20:24] Loaded.
[18:20:24] Loading plugin: sscanf
[18:20:24]

[18:20:24] ===============================

[18:20:24] sscanf plugin loaded.

[18:20:24] Version: 2.8.1

[18:20:24] © 2012 Alex "******" Cole

[18:20:24] ===============================

[18:20:24] Loaded.
[18:20:24] Loading plugin: crashdetect
[18:20:24] CrashDetect v4.13 is OK.
[18:20:24] Loaded.
[18:20:24] Loading plugin: nativechecker
[18:20:24] Loaded.
[18:20:24] Loaded 5 plugins.

[18:20:24]
[18:20:24] Filterscripts
[18:20:24] ---------------
[18:20:24] Loaded 0 filterscripts.

[18:20:24] Error: Function not registered: 'SendDeathMessageToPlayer'
[18:20:24] [debug] Run time error 19: "File or function is not found"
[18:20:24] [debug] SendDeathMessageToPlayer
[18:20:24] [debug] Run time error 19: "File or function is not found"
[18:20:24] [debug] SendDeathMessageToPlayer
[18:20:24] Script[gamemodes/saints.amx]: Run time error 19: "File or function is not found"
[18:20:24] Number of vehicle models: 0


" And as you noticed it doesn't tell you which function is actually missing. Never. "
Reply
#4

then show us the SendDeathMessageToPlayer in your gamemode
Reply
#5

Well, Download Nativechecker and put it from the last of your plugins and try to run it and it will show the problem.
Reply
#6

I don't think it matters but ok.

{
SendDeathMessageToPlayer(killerid, killerid, playerid, reason);
SendDeathMessageToPlayer(playerid, killerid, playerid, reason);

format(string, sizeof(string), "{ffc000}[Paintball]: You killed %s.",GetName(playerid));
SendClientMessage(killerid, COLOR_WHITE, string);

format(string, sizeof(string), "{ffc000}[Paintball]: You were killed by %s.",GetName(killerid));
SendClientMessage(playerid, COLOR_WHITE, string);

new pinfo[128];
KillP[killerid]++;
format(pinfo,sizeof(pinfo),"You have %d kills and %d deaths.", KillP[killerid],DeathP[killerid]);
TextDrawSetString(Paintball[2][killerid], pinfo);
TextDrawShowForPlayer(killerid, Paintball[2][killerid]);

DeathP[playerid]++;
format(pinfo,sizeof(pinfo),"You have %d kills and %d deaths.", KillP[playerid],DeathP[playerid]);
TextDrawSetString(Paintball[2][playerid], pinfo);
TextDrawShowForPlayer(playerid, Paintball[2][playerid]);

PlayerPaintballScore[killerid] = KillP[killerid];
if(PlayerPaintballScore[killerid] > PaintballWinnerScore)
{
PaintballWinner = killerid;
PaintballWinnerScore = PlayerPaintballScore[killerid];
foreach(Player,i)
{
if(IsPlayerConnected(i))
{
if(PlayerPaintballing[i] != 0)
{
format(pinfo,sizeof(pinfo),"Lead is %s with %d kills.",GetName(PaintballWinner),PaintballWinnerSc ore);
TextDrawSetString(Paintball[1][i], pinfo);
TextDrawShowForPlayer(i, Paintball[1][i]);
}
}
}
}

If it was a problem in gamemode the pawno compilation would give me the error.


@Larry, check what i wrote earlier, it didn't help with nativechecker.
Reply
#7

UP
pls help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)