Ok for my "weapon Jams" plugin im trying to make a random weapon jam function . but what I have seems to be crashing my server . any ideas whats wrong with this function here?
Code:
// Random number generator
public random_jam_gen()
{
// if random cvars is 0 (off) end function
if(get_pcvar_num(g_iRandom)==0)
{
return PLUGIN_HANDLED;
}else{
// else ratio == a random number between random cvar and ratio cvar
g_iRatio = random_num(get_pcvar_num(g_iRandom),get_pcvar_num(g_iRatio));
}
return PLUGIN_HANDLED;
}
Thanks