Dynamic race checkpoint help
#1

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

Remove the semicolon ";" from the public function.
pawn Код:
public OnPlayerEnterDynamicRaceCP(playerid, checkpointid)
Reply
#3

lol i just got it and thought of replying but thanks anyway
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)