Hot to speed up this function
#1

Hello,
any idea how to speed up this function?
Код:
stock GetPlayerHouses(playerid)
{
	new count,name[MAX_PLAYER_NAME];
	GetPlayerName(playerid,name,sizeof(name));
	for(new h;h<sizeof(House);h++)
	{
		if(strcmp(name,House[h][house_owner],false) == 0) count++;
	}
	return count;
}
This function is to slow. I need faster.
Thanks for any help
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)