16.07.2010, 15:32
I've a problem with loops.
I'm trying to make a command which will check if the player is near a house (the loop is going through all houses)
and the problem is that it counts just house id 1 (if I add a return/break).
and if I don't add a return/break it spams my chat:
thats the loop:
I'm trying to make a command which will check if the player is near a house (the loop is going through all houses)
and the problem is that it counts just house id 1 (if I add a return/break).
and if I don't add a return/break it spams my chat:
thats the loop:
pawn Код:
for(new h = 1; h < sizeof(HouseInfo); h++)