Hot to speed up this function
#10

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
pawn Код:
// global:
new gLoaded_Houses;

// when houses are loaded (in each iteration that a house is stored to the array "House"):
gLoaded_Houses++;

// any other loop after the houses have been loaded (stored to variables):
for(new h; h < gLoaded_Houses; h++)

// if you have command to create house and it is created successfully:
gLoaded_Houses++;

// if you have command to delete house and it is deleted successfully:
gLoaded_Houses--;
And how it solves my problem? I need to count how much houses player have. This script does not work with player. I have constant number of houses.
Reply


Messages In This Thread
Hot to speed up this function - by ATomas - 13.05.2016, 11:26
Re: Hot to speed up this function - by BiosMarcel - 13.05.2016, 11:33
Re: Hot to speed up this function - by ATomas - 13.05.2016, 11:35
Re: Hot to speed up this function - by Konstantinos - 13.05.2016, 11:44
Re: Hot to speed up this function - by ATomas - 13.05.2016, 11:46
Re: Hot to speed up this function - by Konstantinos - 13.05.2016, 12:01
Re: Hot to speed up this function - by ikey07 - 13.05.2016, 12:13
Re: Hot to speed up this function - by ATomas - 13.05.2016, 12:15
Re: Hot to speed up this function - by Konstantinos - 13.05.2016, 12:29
Re: Hot to speed up this function - by ATomas - 13.05.2016, 12:36
Re: Hot to speed up this function - by Konstantinos - 13.05.2016, 12:41
Re: Hot to speed up this function - by ATomas - 13.05.2016, 12:43
Re: Hot to speed up this function - by PrO.GameR - 13.05.2016, 14:27
Re: Hot to speed up this function - by Crayder - 13.05.2016, 16:04

Forum Jump:


Users browsing this thread: 2 Guest(s)