Error gets spammed
#9

Quote:
Originally Posted by Domnic Toretto
Посмотреть сообщение
hmm lemme just switch something around and see.

P.S Is there any kind of variable to determine whether the bizz is not set or not?

What do you mean by that?
Well, in the loop you're looping thru the max business number availble. If MAX_BUSINESS is 50 and you have only set 40 you would be wasting 10 loop iterations; Scale that to 1000 and you get 960 wasted iterations, where you would be checking 960 times if the player is in range of x0.0 y0.0 z0.0. If Businesses ID's are incremental then you could check if the ID is not 0 (starting from 1), if it is it is mean that the business is not set and then skip it.


Quote:
Originally Posted by Domnic Toretto
Посмотреть сообщение
Ye you were right, i needed to get the players money , i added
pawn Код:
pInfo[playerid][pMoney] = GetPlayerMoney(playerid);
and it eventually got fixed
There's no need for pMoney variable if you're not using a scriptside Money system. Just save into the file with GetPlayerMoney and load it with GivePlayerMoney;
Reply


Messages In This Thread
Error gets spammed - by ZBits - 01.02.2014, 13:07
Re: Error gets spammed - by CuervO - 01.02.2014, 13:12
Re: Error gets spammed - by ZBits - 01.02.2014, 13:25
Re: Error gets spammed - by CuervO - 01.02.2014, 13:29
Re: Error gets spammed - by ZBits - 01.02.2014, 23:38
Re: Error gets spammed - by CuervO - 02.02.2014, 00:22
Re: Error gets spammed - by ZBits - 02.02.2014, 00:25
Re: Error gets spammed - by ZBits - 02.02.2014, 00:31
Re: Error gets spammed - by CuervO - 02.02.2014, 00:32
Re: Error gets spammed - by ZBits - 02.02.2014, 00:35

Forum Jump:


Users browsing this thread: 1 Guest(s)