Raised This Month: $ Target: $400
 0% 

Problem with random_num


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 05-28-2018 , 08:46   Re: Problem with random_num
Reply With Quote #2

This won't work all time, since you're setting "100" as max value of random num. The chance to reach a value smaller than the cvar in this case, is 29%. Also, change this:

Code:
public fwHamPlayerSpawnPost(id) {          if(!is_user_connected(id))                 return HAM_IGNORED          StartEvent(id)          return HAM_OVERRIDE }



Code:
public fwHamPlayerSpawnPost(id) {          if(!is_user_alive(id))                 return          StartEvent(id) }

NOTE: return values are ignored in post forwards.
__________________









Last edited by CrazY.; 05-28-2018 at 08:50.
CrazY. is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:34.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode