10-30-2013, 07:49 PM
Hi everyone, and happy coding! I'm asking if anyone of you know how to use the RandInt code. I basically know the variables and so, but as I can't name the random int, how to I make an if-else statement about that. Heres an example what im talking about:
--------
if(GetLocalVarInt("sounds") == 1
{
PlayGuiSound("sumthing", 100);
}
----------------
Now I want to make that like it generates a random int, if its 1 it plays something, if 2 if plays something else, and so on. I just don't understand how
--------
if(GetLocalVarInt("sounds") == 1
{
PlayGuiSound("sumthing", 100);
}
----------------
Now I want to make that like it generates a random int, if its 1 it plays something, if 2 if plays something else, and so on. I just don't understand how