[HELP] Error Codes i cant fix! - +REP - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] Error Codes i cant fix! - +REP (
/showthread.php?tid=339264)
[HELP] Error Codes i cant fix! - +REP -
Oscii - 02.05.2012
This is the line i have a error on! D:
Quote:
public OnPlayerShootPlayer(shooter,target,Float:damage)
|
Error Code:
Quote:
error 025: function heading differs from prototype
|
I've tried so many solutions but it wont work :(
Thanks :)
Re: [HELP] Error Codes i cant fix! - +REP -
Roel - 02.05.2012
Dit you forwarded it?
forward OnPlayerShoutPlayer(shooter,target,Float:damage);
Re: [HELP] Error Codes i cant fix! - +REP -
mamorunl - 02.05.2012
Quote:
Originally Posted by Roel
Dit you forwarded it?
forward OnPlayerShoutPlayer(shooter,target,Float:damage);
|
otherwise he would get an error saying "not forwarded"
I got this from searching:
Код:
OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
which is different from the OPs function. Given that info, it could be that he is missing the "float:armourlost" parameter.
Re: [HELP] Error Codes i cant fix! - +REP -
Oscii - 02.05.2012
Quote:
Originally Posted by Roel
Dit you forwarded it?
forward OnPlayerShootPlayer(shooter,target,Float:damage);
|
Yep. i added that and it just gives me another error for the same reason of that line
Re: [HELP] Error Codes i cant fix! - +REP -
mamorunl - 02.05.2012
Check my edit and your function.
Re: [HELP] Error Codes i cant fix! - +REP -
Roel - 02.05.2012
Ow well, I thought you get that error when you didnt forwarded it I was to lazy to search it.
And sorry but I'm to lazy to think about it, I'm going to sleep, sorry that I replied on your post
Re: [HELP] Error Codes i cant fix! - +REP -
Oscii - 02.05.2012
Quote:
Originally Posted by mamorunl
Check my edit and your function.
|
FIXED!, THANK YOU VERY MUCH!
+1 rep for all that posted.