Trigger function with % chance
I want function to be triggered with 5% chance but I'm getting error
PHP Code:
Every round start it gets a random number from 1 to 100 if number is equal or below 5 then it does CmdKnifeRound PHP Code:
|
Re: Trigger function with % chance
random_num(1, 100) <= 5
CmdKnifeRound() |
Re: Trigger function with % chance
Quote:
|
Re: Trigger function with % chance
PHP Code:
|
Re: Trigger function with % chance
You have to specify the CmdKnifeRound parameters.
Post the "public CmdKnifeRound(..." line here. |
Re: Trigger function with % chance
Code:
|
Re: Trigger function with % chance
Quote:
|
Re: Trigger function with % chance
Code:
stock bool Chance( iNum, iMult=100 ) Code:
if ( Chance( 5 ) ) |
Re: Trigger function with % chance
Quote:
|
Re: Trigger function with % chance
PHP Code:
Should I replace this to Emp`'s code and what would be the difference? |
All times are GMT -4. The time now is 18:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.