Raised This Month: $ Target: $400
 0% 

Random Numbers


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 11-11-2006 , 20:42   Re: Random Numbers
Reply With Quote #2

Everything look fine but I don't know why you did that above. Your just putting more use code into your plugin that you really don't need too. Checking if it the cvar is zero and returning. When you can do like below and remove unnecessary code.

I suggest you try loading up the AMX Mod X Bin Logger. It will tell you the exact line it crashed on. It a useful tool when debugging stuff too

Code:
// Random number generator public random_jam_gen() {     // if random cvars is 0 (off) end function         if(get_pcvar_num(g_iRandom))     {         g_iRatio =  random_num(get_pcvar_num(g_iRandom), get_pcvar_num(g_iRatio));     }     return PLUGIN_HANDLED; }
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
 



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 06:49.


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