Weapon hack check
#6

Okay try to debug the script.

Add messages to print the contents of the arrays that doesn't match.

pawn Code:
if(weapon[w] != PlayerInfo[i][pGuns][w] && weapon[w] != 0)
    {
        ExecuteHackerAction(i, weapon[w]);
    }
Here for instance, find out what the contents of the arrays are here when it fails.
pawn Code:
printf("DEBUG WH Content: weapon[w] = %d\nContent: PlayerInfo[i][pGuns][w] = %d", weapon[w], PlayerInfo[i][pGuns][w]);
Reply


Messages In This Thread
Weapon hack check - by iamjems - 29.12.2016, 14:23
Re: Weapon hack check - by HydraHumza - 29.12.2016, 14:43
Re: Weapon hack check - by iamjems - 29.12.2016, 15:38
Re: Weapon hack check - by denNorske - 29.12.2016, 23:01
Re: Weapon hack check - by iamjems - 30.12.2016, 01:20
Re: Weapon hack check - by denNorske - 30.12.2016, 01:55
Re: Weapon hack check - by iamjems - 30.12.2016, 10:08
Re: Weapon hack check - by iamjems - 30.12.2016, 10:53
Re: Weapon hack check - by BlackBank - 30.12.2016, 14:30
Re: Weapon hack check - by cessil - 30.12.2016, 14:45
Re: Weapon hack check - by iamjems - 30.12.2016, 18:17
Re: Weapon hack check - by iamjems - 19.02.2017, 16:27

Forum Jump:


Users browsing this thread: 2 Guest(s)