21.05.2014, 19:25
If player is not near any house, you return -10, so basically in that if you are saying:
The index of an array can't be negative.
Just verify if ClosestHouse(playerid)<0 return 1;
pawn Код:
if(pickupid == hpickup[-10])
Just verify if ClosestHouse(playerid)<0 return 1;