Break; function error
#5

Код:
for(new i = 0; i < 10; i++)
{
    if(HealthInfo[id][HealthLevel][i] == 3) break;
	else HealthInfo[id][HealthLevel][i]++, break;
}
See if that works for ya. Its much more efficient as well. I've basically done what you did in like 10+ lines but in 4 lines instead.

Another Edit: To the best of my knowledge, I'm not so sure you understand what '++' does, at least according to the second pastebin you sent. This increments the number of 'HealthInfo[id][HealthLevel][i]' up by 1 each time. If you happen to know SQL I'm sure it would remind you of 'AUTO_INCREMENT', it works the same way.
Reply


Messages In This Thread
Break; function error - by NealPeteros - 09.09.2018, 08:53
Re: Break; function error - by NealPeteros - 09.09.2018, 09:09
Re: Break; function error - by Infin1ty - 09.09.2018, 09:25
Re: Break; function error - by NealPeteros - 09.09.2018, 09:35
Re: Break; function error - by Infin1ty - 09.09.2018, 09:40
Re: Break; function error - by NealPeteros - 09.09.2018, 10:07
Re: Break; function error - by Shinja - 09.09.2018, 12:27
Re: Break; function error - by NealPeteros - 09.09.2018, 12:53
Re: Break; function error - by Shinja - 09.09.2018, 12:58
Re: Break; function error - by NealPeteros - 09.09.2018, 13:00

Forum Jump:


Users browsing this thread: 1 Guest(s)