30.12.2016, 01:55
Okay try to debug the script.
Add messages to print the contents of the arrays that doesn't match.
Here for instance, find out what the contents of the arrays are here when it fails.
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]);
}
pawn Code:
printf("DEBUG WH Content: weapon[w] = %d\nContent: PlayerInfo[i][pGuns][w] = %d", weapon[w], PlayerInfo[i][pGuns][w]);