Why does this not save the car color
#2

Have you noticed that you are assigning the car colors into the player's enum?

pawn Код:
Player[playerid][CarCol1] = col1;
Player[playerid][CarCol2] = col2;
Also, change the if statement into this:

pawn Код:
if( (col1 >= 0 && col1 < 300) && (col2 >= 0 && col2 < 300) )
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.
Reply


Messages In This Thread
Why does this not save the car color - by Euan Hughes - 02.07.2012, 18:34
Re: Why does this not save the car color - by Universal - 02.07.2012, 18:44
Re: Why does this not save the car color - by Euan Hughes - 02.07.2012, 18:46
Re: Why does this not save the car color - by Universal - 02.07.2012, 18:49

Forum Jump:


Users browsing this thread: 1 Guest(s)