SA-MP Forums Archive
help with error in timers - 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 with error in timers (/showthread.php?tid=281850)



help with error in timers - MA_proking - 08.09.2011

Код:
C:\Documents and Settings\Prabhat\Desktop\CopsVSTerrorists v4.0 [0.3c]\filterscripts\race.pwn(217) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
pawn Код:
public race2(playerid)//line 217 and function forwarded
{
    SetPlayerVirtualWorld(playerid,102);
    SetPlayerPos(playerid,1286.4811,-1712.4708,12.8618);
    PutPlayerInVehicle(playerid, 471, 0);
}



Re: help with error in timers - =WoR=Varth - 08.09.2011

Your forward must be:
pawn Код:
forward race2(playerid);



Re: help with error in timers - MA_proking - 08.09.2011

function forwarded already


Re: help with error in timers - =WoR=Varth - 08.09.2011

Quote:
Originally Posted by MA_proking
Посмотреть сообщение
function forwarded already
May I see?


Re: help with error in timers - MA_proking - 08.09.2011

Код:
forward race2();



Re: help with error in timers - =WoR=Varth - 08.09.2011

Quote:
Originally Posted by MA_proking
Посмотреть сообщение
Код:
forward race2();
Did you even read my post before you reply it?

Quote:
Originally Posted by varthshenon
Посмотреть сообщение
Your forward must be:
pawn Код:
forward race2(playerid);



Re: help with error in timers - MA_proking - 08.09.2011

thanks it work ..... +1 rep for you sir