18.11.2017, 10:46
Okay, Okay see.
The function OwnedTurfs2 is supposed to loop through the turfs and return the turf value, so that it can be used.
Here, this part of code -
This loop is assigned under a function which is being called every 0.3 seconds to update the textdraw which shows total players in team and turfs owned etc.
Edit: I forgot to tell that TurfOwner variable is Integer.
The function OwnedTurfs2 is supposed to loop through the turfs and return the turf value, so that it can be used.
Here, this part of code -
Код:
for (new teams=0; teams<MAX_TEAMS; teams++) OwnedTurfs2( teams );
Edit: I forgot to tell that TurfOwner variable is Integer.