well the idea was that if the random cvars is 0 , which is the default , then not to run that function at all . other wise it will generate a random number between 0 and 200 the other cvar. so first it checks to see if there using the random function cvar , if they are and the number is not 0 , then it will generate a number. i found the problem that made it crash .
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;
}
using only 1 = sign (assignemnt) made it crash , but its still not generating a random number any ideas ???