17.08.2009, 09:25
Quote:
Originally Posted by paytas
U should create 1 array for 1 race, or use a 2d array and som index to know where a race is in that array.
|
if(currentrace == 1)
{
SetRaceCP(Race1CP[...][...])
}
else if(currentrace == 2)
{
SetRaceCP(Race2CP[...][...])
}
else if(currentrace == 3)
{
SetRaceCP(Race3CP[...][...])
}
now I can simply do:
SetRaceCP(RaceCP[currentrace][...][...])