Gamemode errors - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Gamemode errors (
/showthread.php?tid=637910)
Gamemode errors -
Furqan - 23.07.2017
Код:
C:\Users\Administrator\Desktop\server\gamemodes\fggrp.pwn(13133) : error 017: undefined symbol "DIALOG_STYLE_TABLIST_HEADERS"
C:\Users\Administrator\Desktop\server\gamemodes\fggrp.pwn(13609) : warning 235: public function lacks forward declaration (symbol "OnVehicleSirenStateChange")
C:\Users\Administrator\Desktop\server\gamemodes\fggrp.pwn(13614) : warning 235: public function lacks forward declaration (symbol "OnTrailerUpdate")
C:\Users\Administrator\Desktop\server\gamemodes\fggrp.pwn(13634) : warning 235: public function lacks forward declaration (symbol "OnPlayerGiveDamageActor")
C:\Users\Administrator\Desktop\server\gamemodes\fggrp.pwn(107761) : error 025: function heading differs from prototype
C:\Users\Administrator\Desktop\server\gamemodes\fggrp.pwn(108036) : error 025: function heading differs from prototype
C:\Users\Administrator\Desktop\server\gamemodes\fggrp.pwn(109042) : error 017: undefined symbol "DestroyActor"
C:\Users\Administrator\Desktop\server\gamemodes\fggrp.pwn(117447) : warning 235: public function lacks forward declaration (symbol "OnPlayerWeaponShot")
C:\Users\Administrator\Desktop\server\gamemodes\fggrp.pwn(137400) : warning 203: symbol is never used: "GetVehicleIDByName"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
HELP ME PLEASE.
Re: Gamemode errors -
Furqan - 23.07.2017
Код:
C:\Users\Administrator\Desktop\server\gamemodes\fggrp.pwn(107764) : error 025: function heading differs from prototype
C:\Users\Administrator\Desktop\server\gamemodes\fggrp.pwn(108039) : error 025: function heading differs from prototype.
2 Errors
I fixed some errors, help me with the current now.
LINE 107764
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
LINE 108039
Код:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart)
both are same, help me.
Re: Gamemode errors -
jlalt - 23.07.2017
probably your forward of OnPlayerTakeDamage function is having the old parameters [ missing bodypart ].
so either go to somewhere in includes and change
PHP код:
forward OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid);
to
PHP код:
OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart);
or simply remove bodypart from your public functions parameters.
Re: Gamemode errors -
Furqan - 23.07.2017
Jhalt, do you have teamviewer?
Re: Gamemode errors -
jlalt - 23.07.2017
Quote:
Originally Posted by Furqan
Jhalt, do you have teamviewer?
|
yes I do, you can give me your id and password on private pm D:
Re: Gamemode errors -
Furqan - 23.07.2017
I checked it in a_samp include it says
Код:
forward OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart);
forward OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart);
Re: Gamemode errors -
Furqan - 23.07.2017
Thank you so much Jhalt, fixed it with the help of you. <3
Re: Gamemode errors -
Barnwell - 23.07.2017
I had this problem also