18.06.2014, 10:21
I think you've just reversed the "NearShop" affectation and the product checking.
Put the "if" statement after the "NearShop[playerid] = i;".
EDIT : @Konstantinos : It is. When you try accessing an up bound or a negative bound cell of an array, it crashes the server (see the "Crashdetect plugin" example)
Put the "if" statement after the "NearShop[playerid] = i;".
EDIT : @Konstantinos : It is. When you try accessing an up bound or a negative bound cell of an array, it crashes the server (see the "Crashdetect plugin" example)