05.09.2013, 15:42
Hold on, I was confused at the last part about the race2, the farm race, the test race.. Anyways, from the code below:
I see that you set the X, Y, Z for the race checkpoint but those:
are 0.0
Nothing has been assigned before on them. RInfo[i][Name] as well, it should be null.
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;
}
pawn Код:
RInfo[ i ][ CPX ][ 0 ], RInfo[ i ][ CPY ][ 0 ], RInfo[ i ][ CPZ ][ 0 ]
Nothing has been assigned before on them. RInfo[i][Name] as well, it should be null.