weird errors
#1

Hey guys, i got weird errors in my auto heal and auto weapon & armour
Like this:
Код:
F:\gs.pwn(202) : error 025: function heading differs from prototype
F:\gs.pwn(203) : error 025: function heading differs from prototype
F:\gs.pwn(215) : error 025: function heading differs from prototype
F:\gs.pwn(216) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
This are the lines:
Код:
202: forward AUTOHEAL(playerid);
	203:  public AUTOHEAL(playerid)
        215: 	forward AUTOWEAPARMOUR(playerid);
	216:  public AUTOWEAPARMOUR(playerid)
And its strange when i remove this lines on top of the script:
Код:
 forward AUTOHEAL();
forward AUTOWEAPARMOUR();
It works without errors, but ingame the function doesnt work
Reply
#2

How do you call these functions?
Reply
#3

Just AUTOHEAL and AUTOWEAPARMOUR
Reply
#4

remove all forwards and publics for those 2 functions and add exact this:
at the top:
pawn Код:
forward AUTOWEAPARMOUR(playerid);
forward AUTOHEAL(playerid);
and somewhere..
pawn Код:
public AUTOWEAPARMOUR(playerid)
{
  return 1;
}
public AUTOHEAL(playerid)
{
  return 1;
}
Reply
#5

Thanks i did it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)