Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » Commands->Get_Random_Int() is of very poor quality
Re: Commands->Get_Random_Int() is of very poor quality [message #473086 is a reply to message #473077] Sun, 12 August 2012 14:25 Go to previous messageGo to previous message
Xpert is currently offline  Xpert
Messages: 1588
Registered: December 2005
Location: New York City
Karma:
General (1 Star)
Also, crates like DEPOINTS and DEMONEY doesn't work in SSGM 2.0.2 and SSGM 4.0 because if you do something like

int RndGood = Commands->Get_Random_Int(1,2);

The random number will always be "1".


If it was like

int RndGood = Commands->Get_Random_Int(1,3);

Then the result will either be "1" or "2".


I did the above in my crates plugin to get those crates to work.


http://i32.photobucket.com/albums/d42/XpertMaverick/xpertyankee.jpg

Creator of NetGuard, an IRC network regulator.
Developer of the CloudyServ 0.982-X project.
Developer of the CloudyServ Ren-X bot.

Part time streamer - https://twitch.tv/gg_wonder
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Crash dump
Next Topic: flame tank right click
Goto Forum:
  


Current Time: Sat Aug 31 20:22:38 MST 2024

Total time taken to generate the page: 0.00609 seconds