So I want to pick a random number and do different things for every pick.
PHP Code:
new randomr = random_num(1,10);
if(equal(randomr, "1"){
set_task( 30.0, "somefunc")
}
if(equal(randomr, "2"){
client_print(0, print_chat, "The picked number is 2.")
}
if(equal(randomr, "3"){
server_cmd("sv_restartround 5")
}
// and so on
But it gives an error. What am I doing wrong?