13.09.2012, 16:21
To fix your empty statement problem:
Correct, that is a loop.
1) It declares a variable, titled 'houseid'.
2) It will check if houseid is lower than MAX_HOUSES, and if it is, the 'houseid' variable is incremented by one each time, and the code below the following brace below the for loop '{' will be executed (it's like an if statement, but it repeats).
More info: https://sampforum.blast.hk/showthread.php?tid=305770
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, Range, House[houseid][hExtPosX], House[houseid][hExtPosY], House[houseid][hExtPosZ]))
Quote:
Ahh righto, thanks all for your responses, may I ask what is this and how does it work?
pawn Код:
|
1) It declares a variable, titled 'houseid'.
2) It will check if houseid is lower than MAX_HOUSES, and if it is, the 'houseid' variable is incremented by one each time, and the code below the following brace below the for loop '{' will be executed (it's like an if statement, but it repeats).
More info: https://sampforum.blast.hk/showthread.php?tid=305770