Dynamic race checkpoint help - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Dynamic race checkpoint help (
/showthread.php?tid=216725)
Dynamic race checkpoint help -
THE_KNOWN - 26.01.2011
here's my code
Код:
public OnPlayerEnterDynamicRaceCP(playerid, checkpointid);
{
if(checkpointid == dscp[0])
{
dscp[1] = SetPlayerRaceCheckpoint(playerid, 0,1015.8873,1809.7323,10.4908,1314.0038,1810.6564,10.4308, 5);
}
if(checkpointid == dscp[1])
{
dscp[2] =SetPlayerRaceCheckpoint(playerid, 0, 1314.0038,1810.6564,10.4308,1563.9357,1868.2799,10.5651, 5);
}
return 1;
}
its givin me these errors:
Код:
C:\Users\likith\Desktop\3c srvr\gamemodes\EeshRP.pwn(884) : error 055: start of function body without function header
C:\Users\likith\Desktop\3c srvr\gamemodes\EeshRP.pwn(885) : error 010: invalid function or declaration
C:\Users\likith\Desktop\3c srvr\gamemodes\EeshRP.pwn(889) : error 010: invalid function or declaration
C:\Users\likith\Desktop\3c srvr\gamemodes\EeshRP.pwn(893) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Re: Dynamic race checkpoint help -
iggy1 - 26.01.2011
Remove the semicolon ";" from the public function.
pawn Код:
public OnPlayerEnterDynamicRaceCP(playerid, checkpointid)
Re: Dynamic race checkpoint help -
THE_KNOWN - 26.01.2011
lol i just got it and thought of replying but thanks anyway