[SOLVED]error 025: function heading differs from prototype - 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: [SOLVED]error 025: function heading differs from prototype (
/showthread.php?tid=480327)
[SOLVED]error 025: function heading differs from prototype -
AnonymouseSAMP - 10.12.2013
SOLVED!
Re: error 025: function heading differs from prototype -
SickAttack - 10.12.2013
You didn't forward it right. Here you go:
Код:
forward ayoyo(playerid);
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys == 16)
{
SetTimer("ayoyo", 6000, false);
}
return 1;
}
public ayoyo(playerid)
{
ClearAnimations(playerid);
}
Rep+ :P LeL
Re: error 025: function heading differs from prototype -
Nikid - 10.12.2013
pawn Код:
forward ayoyo(playerid);
public ayoyo(playerid){
ClearAnimations(playerid);
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys == 16){
SetTimer("ayoyo", 6000, false);
}
return true;
}
Re: error 025: function heading differs from prototype -
AnonymouseSAMP - 10.12.2013
Quote:
Originally Posted by SickAttack
You didn't forward it right. Here you go:
Код:
forward ayoyo(playerid);
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys == 16)
{
SetTimer("ayoyo", 6000, false);
}
return 1;
}
public ayoyo(playerid)
{
ClearAnimations(playerid);
}
Rep+ :P LeL
|
thanks!!!