Random vehicle ID
#1

Hello, I'm trying to get a random id of a car, but I don't want these down here, when I use a command for this, I'm getting any random number from 400 to 611, but the SendClientMessage with a blue text never pop up in a chat, only a green message, so I don't even know, if that carID = randomEx(494,536); is called, any reasons?

PHP код:
        new carID=randomEx(400,611), string[96];
        if(
carID != 430||435||446||449||450||452||453||454||460||472||473||484||493||537||538||539||553||569||570||577||584||590||591||592||594||595||606||607||608||610||611)
        {
            
format(stringsizeof(string), "You got vehicle ID: %d!",carID);
            
SCM(playeridGREENstring);
            return 
1;
        }
        else
        {
            
carID randomEx(494,536);
            
format(stringsizeof(string), "You got vehicle ID: %d!",carID);
            
SCM(playeridBLUEstring);
            return 
1;
        } 
Reply


Messages In This Thread
Random vehicle ID - by TayFunCZE - 27.07.2017, 21:47
Re: Random vehicle ID - by Jefff - 27.07.2017, 21:57
Re: Random vehicle ID - by Paulice - 27.07.2017, 21:58
Re: Random vehicle ID - by IstuntmanI - 27.07.2017, 21:58
Re: Random vehicle ID - by TayFunCZE - 27.07.2017, 22:03

Forum Jump:


Users browsing this thread: 1 Guest(s)