help create errors
#1

Код:
D:\Games\SAMP сервер\SampDM\pawno\include\YSI\internal\y_dohooks.inc(2498) : warning 235: public function lacks forward declaration (symbol "OnUnoccupiedVehicleUpdate")
D:\Games\SAMP сервер\SampDM\pawno\include\YSI\internal\y_dohooks.inc(3358) : warning 235: public function lacks forward declaration (symbol "OnPlayerTakeDamage")
D:\Games\SAMP сервер\SampDM\pawno\include\YSI\internal\y_dohooks.inc(3427) : warning 235: public function lacks forward declaration (symbol "OnPlayerGiveDamage")
D:\Games\SAMP сервер\SampDM\gamemodes\SampDMv.1.2.pwn(2477) : error 017: undefined symbol "PlayAudioStreamForPlayer"
D:\Games\SAMP сервер\SampDM\gamemodes\SampDMv.1.2.pwn(2481) : error 017: undefined symbol "StopAudioStreamForPlayer"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#2

How are we supossed to help you if you don't show us the code?
Reply
#3

Add this on the top of your script
pawn Код:
forward OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat);
forward OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid);
forward OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid);
Reply
#4

Код:
if(listitem == 2)//2498 line
Код:
PlayAudioStreamForPlayer(playerid,"http://s1.radio-hoster.ru:8000/UnlimitedFM.m3u");//2477 line
}
else
{
StopAudioStreamForPlayer(playerid);//2481 line
Reply
#5

errors appeared after include addition
Reply
#6

Update Your Includes it looks like you are using old Includes
Reply
#7

http://forum.sa-mp.com/showthread.ph...highlight=YCMD
Reply
#8

Quote:
Originally Posted by Cjgogo
Посмотреть сообщение
How are we supossed to help you if you don't show us the code?
We don't need the code here, there's no code error...

Quote:
Originally Posted by Ironboy
Посмотреть сообщение
Add this on the top of your script
pawn Код:
forward OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat);
forward OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid);
forward OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid);
Will not help if using an old SA-MP Server version.

The best solution is downloading the new version of SA-MP Server, and replacing all includes and the executable.
Reply
#9

in the file "server_log.txt"

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3d-R2, ©2005-2011 SA-MP Team

[19:40:24] filterscripts = "" (string)
[19:40:24]
[19:40:24] Server Plugins
[19:40:24] --------------
[19:40:24] Loading plugin: sscanf
[19:40:24]

[19:40:24] ===============================

[19:40:24] sscanf plugin loaded.

[19:40:24] © 2009 Alex "******" Cole

[19:40:24] ===============================

[19:40:24] Loaded.
[19:40:24] Loading plugin: streamer
[19:40:24]

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

[19:40:24] Loaded.
[19:40:24] Loaded 2 plugins.

[19:40:24]
[19:40:24] Ban list
[19:40:24] --------
[19:40:24] Loaded: samp.ban
[19:40:24]
[19:40:24]
[19:40:24] Filterscripts
[19:40:24] ---------------
[19:40:24] Loaded 0 filterscripts.

[19:40:24] Script[gamemodes/SampDMv.1.2.amx]: Run time error 19: "File or function is not found"
[19:40:24] Number of vehicle models: 0
[19:40:27] --- Server Shutting Down.
[19:40:27]

[19:40:27] ===============================

[19:40:27] sscanf plugin unloaded.

[19:40:27] ===============================

[19:40:27]

*** Streamer Plugin v2.5.2 by Incognito unloaded ***
Reply
#10

Quote:
Originally Posted by [HHT]DRON
Посмотреть сообщение
[19:40:24] Script[gamemodes/SampDMv.1.2.amx]: Run time error 19: "File or function is not found"
That means exactly that in the Abstract Machine there's no function with that name (I studied a bit how the pawn amx is made internally), you forwarded it in the pawn code and it compiled, because the compiler doesn't know if there is or not that function, but when you execute there's that error, the run time error 19. The cause is that you are using an old version of the SA-MP Server program.

Download SA-MP Server 0.3d R2 http://www.sa-mp.com/download.php
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)