Sorry to bump this, but the problem is still there when I was working on a new plugin.
Here's an example:
Code:
new RandomNumbersArrayScout[20] = {45,220,448,772,46,163,222,449,773,812,44,221,317,325,349,355,450,452,572,648};
new randomnumScout = GetRandomInt(0, 20);
new RandomNumbersArrayRaresScout[2] = {160,423};
new randomnumRaresScout = GetRandomInt(0, 2);
new rareChance = GetRandomInt(0,200);
if (TF2_GetPlayerClass(client) == TFClass_Scout)
{
if (IsValidClient(client))
{
if (rareChance == 200)
{
TF2Items_GiveWeapon(client, RandomNumbersArrayRaresScout[randomnumRaresScout]);
}
else
{
TF2Items_GiveWeapon(client, RandomNumbersArrayScout[randomnumScout]);
}
}
}
Any way to fix this?
__________________