help create errors -
[HHT]DRON - 13.04.2012
Код:
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.
Re: help create errors -
Cjgogo - 13.04.2012
How are we supossed to help you if you don't show us the code?
Re: help create errors -
Ironboy - 13.04.2012
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);
Re: help create errors -
[HHT]DRON - 13.04.2012
Код:
if(listitem == 2)//2498 line
Код:
PlayAudioStreamForPlayer(playerid,"http://s1.radio-hoster.ru:8000/UnlimitedFM.m3u");//2477 line
}
else
{
StopAudioStreamForPlayer(playerid);//2481 line
Re: help create errors -
[HHT]DRON - 13.04.2012
errors appeared after include addition
Re: help create errors -
Phyrunx - 13.04.2012
Update Your Includes it looks like you are using old Includes
Re: help create errors -
[HHT]DRON - 13.04.2012
http://forum.sa-mp.com/showthread.ph...highlight=YCMD
Re: help create errors -
Sasino97 - 13.04.2012
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.
Re: help create errors -
[HHT]DRON - 13.04.2012
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 ***
Re: help create errors -
Sasino97 - 13.04.2012
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