SA-MP Forums Archive
Race Checkpoints - 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: Race Checkpoints (/showthread.php?tid=455337)



Race Checkpoints - DJRebis - 01.08.2013

Hello i want to add race checkpoint! I did like this
Код:
new Ccp[MAX_PLAYERS];
And this:
Код:
forward SetRaceCheckpoint(playerid,target,next);
public SetRaceCheckpoint(playerid,target,next)
{
     if(next == -1 && Ccp == 0)
     SetPlayerRaceCheckpoint(playerid,0,-227.0522,1272.1940,26.6959,-227.0522,1272.1940,26.6959,5);
     return 1;
}
But it gives me error:
Код:
pwn(127) : error 033: array must be indexed (variable "Ccp")
What i need to do?


Re: Race Checkpoints - appleomax - 01.08.2013

Код:
forward SetRaceCheckpoint(playerid,target,next);
public SetRaceCheckpoint(playerid,target,next)
{
     if(next == -1 && Ccp[0] == 0)
     SetPlayerRaceCheckpoint(playerid,0,-227.0522,1272.1940,26.6959,-227.0522,1272.1940,26.6959,5);
     return 1;
}



Re: Race Checkpoints - DJRebis - 01.08.2013

Quote:
Originally Posted by appleomax
Посмотреть сообщение
Код:
forward SetRaceCheckpoint(playerid,target,next);
public SetRaceCheckpoint(playerid,target,next)
{
     if(next == -1 && Ccp[0] == 0)
     SetPlayerRaceCheckpoint(playerid,0,-227.0522,1272.1940,26.6959,-227.0522,1272.1940,26.6959,5);
     return 1;
}
Thank you!