Checkpoint type.
#1

The first checkpoint gives me the correct checkpoint (air - type 3)
When entering it it gives the rest normal race checkpoint (car race - type 0)

How to make it give me the whole time air cp
pawn Код:
//onplayerspawn
SetPlayerRaceCheckpoint(playerid, 3, gCheckpoints[gCheckpoint[playerid]][0], gCheckpoints[gCheckpoint[playerid]][1], gCheckpoints[gCheckpoint[playerid]][2], gCheckpoints[gCheckpoint[playerid] + 1][0], gCheckpoints[gCheckpoint[playerid] + 1][1], gCheckpoints[gCheckpoint[playerid] + 1][2], 12.0);
 
//onplayerenterracecheckpoint
if(gCheckpoint[playerid] == MAX_CHECKPOINTS - 2) { checkpointtype = 1; }
if(gCheckpoint[playerid] != MAX_CHECKPOINTS - 1)
{
SetPlayerRaceCheckpoint(playerid, checkpointtype, gCheckpoints[gCheckpoint[playerid]][0], gCheckpoints[gCheckpoint[playerid]][1], gCheckpoints[gCheckpoint[playerid]][2], gCheckpoints[gCheckpoint[playerid] + 1][0], gCheckpoints[gCheckpoint[playerid] + 1][1], gCheckpoints[gCheckpoint[playerid] + 1][2], 12.0);
Reply
#2

Since you entered 'checkpointtype is 1 it should see it as race checkpoint type 1. If you set it to '3' it would show the air checkpoint.
Reply
#3

Emmh not exactly, Type 1 is the finish checkpoint.. :S
Reply
#4

pawn Код:
SetPlayerRaceCheckpoint(playerid, checkpointtype, gCheckpoints[gCheckpoint[playerid]][0], gCheckpoints[gCheckpoint[playerid]][1], gCheckpoints[gCheckpoint[playerid]][2], gCheckpoints[gCheckpoint[playerid] + 1][0], gCheckpoints[gCheckpoint[playerid] + 1][1], gCheckpoints[gCheckpoint[playerid] + 1][2], 12.0);
Do you have 'checkpointtype' defined somewhere? A redefinition of it to '3' would help.
Or simply- delete it and replace 'checkpointtype' with 3.
Reply
#5

Air checkpoints 3-normal 4-finish

maybe you need to add another variable to denote that it is an air race, and if so, +3 to checkpoint type.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)