racecheckpoint help!
#1

public SetRaceCheckpoint(playerid,target,next)
{
if(next == -1 && Normal == 0)
SetPlayerRaceCheckpoint(playerid,1,1140.1378,1376. 2739,10.3990,1004.8897,1360.0975,10.3990,1.0);

return 1;
}

those are the first checkpoint and the second checkpoint how to make it after he go to the second one he go to third etc..
and i get error with this "Normal"
please respond and not like every time i ask for help i never asked for it and someone helped please respond
please!

Ferrari, Thxbb
Reply
#2

Make a per-player variable (checkpointid[MAX_PLAYERS], for example) in which you'll store the player's current checkpoint.
Whenever a player passes trough a checkpoint, increment the var with 1. You can then use it to set the next checkpoint accordingly.

pawn Код:
switch(checkpointid)
{
    // Add CP's
    case 1: SetPlayerCheckpoint(...);
    case 2: SetPlayerCheckpoint(...);
    case 3: SetPlayerCheckpoint(...);
}
Reply
#3

i still dnt get it sry
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)