OnPlayerText problem
#3

This

PHP код:
public OnPlayerText(playeridtext[]) 

    if(!
chattoggled
    { 
        return 
0
    } 
    else 
    { 
        return 
0
    } 
        if(
chattoggle[playerid]) 
    { 
        return 
0
    } 
    else 
    { 
        return 
1
    } 

Can be optimized to this

PHP код:
public OnPlayerText(playeridtext[])
{
    if(!
chattoggled || chattoggle[playerid])
        return 
0;
        
    return 
1;

Reply


Messages In This Thread
OnPlayerText problem - by NealPeteros - 02.01.2018, 08:35
Re: OnPlayerText problem - by JesterlJoker - 02.01.2018, 08:40
Re: OnPlayerText problem - by JaKe Elite - 02.01.2018, 08:47

Forum Jump:


Users browsing this thread: 2 Guest(s)