[HELP] Error Codes i cant fix! - +REP
#1

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 :)
Reply
#2

Dit you forwarded it?
forward OnPlayerShoutPlayer(shooter,target,Float:damage);
Reply
#3

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.
Reply
#4

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
Reply
#5

Check my edit and your function.
Reply
#6

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
Reply
#7

Quote:
Originally Posted by mamorunl
Посмотреть сообщение
Check my edit and your function.
FIXED!, THANK YOU VERY MUCH!


+1 rep for all that posted.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)