14.12.2009, 18:22
No you don't need a switch statement.
Switch statements are only useful if you want to check for if var is equal to more than one value
Example
If you only want to check for one state, then a switch statement isn't necesarry.
Switch statements are only useful if you want to check for if var is equal to more than one value
Example
pawn Код:
switch(oldstate)
{
case PLAYER_STATE_DRIVER: { /*something*/ }
case PLAYER_STATE_PASSENGER: { /*something else*/ }
}