View Single Post
AmXDusT
Member
Join Date: Feb 2019
Location: Italy / Albania
Old 09-14-2019 , 13:43   Re: Player "not in-game" at Ham_Spawn (post) on lastest 1.9 but working on 1.8.2
Reply With Quote #7

Just for curiosity
PHP Code:
// random_mod(max): A small function to give a random number from 0 to max-1. Useful for get random values from arrays
#define random_mod(%1) (random_num(0, (100 * (%1)) - 1) % (%1)) 
Is there any use of getting random that way instead of simply "random_num( 0, (%1) - 1 )"?

Last edited by AmXDusT; 09-14-2019 at 13:44.
AmXDusT is offline