02.07.2012, 18:44
Have you noticed that you are assigning the car colors into the player's enum?
Also, change the if statement into this:
Because, the current one will only check if one of the colors is correct, but not both of them. So you can enter one valid color and another invalid.
pawn Код:
Player[playerid][CarCol1] = col1;
Player[playerid][CarCol2] = col2;
pawn Код:
if( (col1 >= 0 && col1 < 300) && (col2 >= 0 && col2 < 300) )