[Ajuda] Chat Global
#5

Aн nesse seu cуdigo nгo percebi uma coisa:

PHP код:
if(!(pAdmin[playerid] >= 1)) 
Se a variбvel pAdmin[playerid] NГO (!) for MAIOR ou IGUAL a 1, vocк estб a formatar uma string com a tag de admin...

Nгo devia ser:

PHP код:
if(pAdmin[playerid] >= 1
Se a variбvel pAdmin[playerid] FOR MAIOR ou IGUAL a 1, formata a string com a tag de admin.

PHP код:
public OnPlayerText(playeridtext[])
{
    if(
Chatlb == 1)
    {
        if(
pAdmin[playerid] >= 1)
        {
            
format(stringsizeof(string), "{33AA33}[ADM]:[ID: %d]{9E3EFF} %s"playeridtext);
            
SendPlayerMessageToAll(playeridstring);
            
        }
        else
        {
            
format(stringsizeof(string), "[ID: %d]{9E3EFF} %s"playeridtext);
            
SendPlayerMessageToAll(playeridstring);
        }
    }
    else
    {
        
ChatProximo(playeridtext);
    }
    return 
0;

Reply


Messages In This Thread
Chat Global[Re-Aberto] - by MrPaulistinha - 08.11.2013, 19:50
Re: Chat Global - by GReeN_WOoD - 08.11.2013, 21:36
Re: Chat Global - by MrPaulistinha - 09.11.2013, 00:16
Re: Chat Global - by GReeN_WOoD - 09.11.2013, 03:32
Re: Chat Global - by bruxo00 - 09.11.2013, 11:14
Re: Chat Global - by MrPaulistinha - 09.11.2013, 15:01
Re: Chat Global - by MrPaulistinha - 10.11.2013, 02:05
Re: Chat Global - by andreasbleck - 10.11.2013, 02:10
Re: Chat Global - by MrPaulistinha - 10.11.2013, 14:49

Forum Jump:


Users browsing this thread: 1 Guest(s)