10.05.2013, 08:41
The loop spams
like returning
until it reached up to 29. (Maximum is 30).
Causing the checkpointid to be messed up or not working.
I want it to remain to 1 or return it as the checkpoint id.
I'm using custom checkpoint streamer (don't tell me to use incognito. i'm creating a custom one).
I don't want to show the code in "//code here" because that one is private and i'm sure it's nothing to do with this. (Since it only CallLocalFunction and variable).
like returning
Код:
CheckpointID: 1 CheckpointID: 2
Causing the checkpointid to be messed up or not working.
I want it to remain to 1 or return it as the checkpoint id.
I'm using custom checkpoint streamer (don't tell me to use incognito. i'm creating a custom one).
pawn Код:
for(new j = 0; j < 30; j++)
{
if(IsPlayerInRangeOfPoint(i, 1.0, cpData[j][cpX], cpData[j][cpY], cpData[j][cpZ]) && entered[i][j] == false)
{
//code here
printf("CheckpointID: %i", j);
continue;
}
else if(!IsPlayerInRangeOfPoint(i, 1.0, cpData[j][cpX], cpData[j][cpY], cpData[j][cpZ]) && entered[i][j] == true)
{
//code here
continue;
}
}