11.06.2013, 18:30
This code is as wrong as can be. I only needed to examine the first four lines to see that this won't do what you expect it to do. Then there is the issue of OnPlayerUpdate. Never, ever, use loops in OnPlayerUpdate unless you seriously know what you're doing!
Your code will compile as:
Which means everyone gets banned (having weaponid 0).
Your code will compile as:
pawn Код:
while(w < 8)
{
if(GetPlayerWeapon(playerid) == w /* 0 through 7 */)
{