Still a problem using checkpoints...
#2

Hold on, I was confused at the last part about the race2, the farm race, the test race.. Anyways, from the code below:

pawn Код:
public OnGameModeInit()
{
    new string[256];
    for( new i = 0; i < MAX_RACES; i++ )
    {
        RaceCP[i] = CreateDynamicRaceCP(2, RInfo[ i ][ CPX ][ 0 ], RInfo[ i ][ CPY ][ 0 ], RInfo[ i ][ CPZ ][ 0 ], 0, 0, 0, 10.0, -1, -1, -1, 100.0);
        format (string, sizeof string, "RACE: \"%s\" type /join to enter", RInfo[i][Name]);
        CreateDynamic3DTextLabel(string, COLOR_GREEN_LABEL, RInfo[ i ][ CPX ][ 0 ], RInfo[ i ][ CPY ][ 0 ], RInfo[ i ][ CPZ ][ 0 ] + 5, 100.0,INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
    }
    return 1;
}
I see that you set the X, Y, Z for the race checkpoint but those:
pawn Код:
RInfo[ i ][ CPX ][ 0 ], RInfo[ i ][ CPY ][ 0 ], RInfo[ i ][ CPZ ][ 0 ]
are 0.0

Nothing has been assigned before on them. RInfo[i][Name] as well, it should be null.
Reply


Messages In This Thread
Still a problem using checkpoints... - by knackworst - 05.09.2013, 15:29
Re: Still a problem using checkpoints... - by Konstantinos - 05.09.2013, 15:42
Re: Still a problem using checkpoints... - by knackworst - 05.09.2013, 17:21
Re: Still a problem using checkpoints... - by Konstantinos - 05.09.2013, 17:24
Re: Still a problem using checkpoints... - by knackworst - 05.09.2013, 17:53
Re: Still a problem using checkpoints... - by Konstantinos - 05.09.2013, 18:12
Re: Still a problem using checkpoints... - by knackworst - 05.09.2013, 19:38
Re: Still a problem using checkpoints... - by Konstantinos - 05.09.2013, 19:48
Re: Still a problem using checkpoints... - by knackworst - 05.09.2013, 19:49

Forum Jump:


Users browsing this thread: 1 Guest(s)