Do i need update every time textdraw?
#1

Hi!
I have one question do i need update every time textdraw like example i use killstreaks textdraw and its count kills like if i make kill at same time i update him like this
Код:
    pInfo[killerid][blabla]++;
    UpdateKST();
So me real question is do i need everytime update this textdraw system like i have made if player connect hes kills set to zero like this
Код:
pInfo[playerid][blabla] = 0;
so do i need update it to? with
Код:
UpdateKST();
or i dont rly need it? Because i thinking if i dont update it, its just stuck on counting and didn't show correctly in textdraw.
Reply
#2

Yes, you should, if you want to update his textdraw once he had a kill streak!

Special Notice:

Use += instead of ++ for more optimisations !

Example Code:

PHP код:
pInfo[killerid][blabla] += 1
Reply
#3

^ That's just a matter of personal preference. Both work and one isn't better than the other.
Reply
#4

Quote:
Originally Posted by AjaxM
Посмотреть сообщение
Yes, you should, if you want to update his textdraw once he had a kill streak!

Special Notice:

Use += instead of ++ for more optimisations !

Example Code:

PHP код:
pInfo[killerid][blabla] += 1
Ok thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)