View Single Post
eat1k
Senior Member
Join Date: Apr 2018
Old 03-12-2019 , 16:05   Re: Time info v1.1 [HUD+Narrator]
Reply With Quote #10

new bool:iLag[32]
1) Why "i"? It's a boolean. so bLag. Moreover, it should be MAX_PLAYERS+1 (32+1).
2) Better not to use ResetHUD.
3) get_cvar_num -> get_pcvar_num (if you want to support AMXX 1.8.2. If not, so just use bind_pcvar_*).
4)
PHP Code:
public StartThread(id) if(iLag[id]==false){ 
->
PHP Code:
public StartThread(id)
{
    if(!
iLag[id])
        
set_task(0.1"ShowTime"id);

And the same with other functions.

5) iTime should be szTime because it's a string.
6) new iTime[256] why 256?
__________________

Last edited by eat1k; 03-12-2019 at 16:10.
eat1k is offline