[Ajuda] O que tem de errado nesses comandos?
#1

Esses dois comandos nгo estгo funcionando, eu digito "/h Teste" e nгo aparece nada, o mesmo ocorre com /ah, agradeзo a quem ajuda.

PHP код:
CMD:h(playeridresult[])
{
    
GetPlayerName(playeridsendernamesizeof(sendername));
    if(
isnull(result))
    {
        
SendClientMessage(playeridCOLOR_GRAD2"USE: (/h ou /hc)helper [helper chat]");
        return 
true;
    }
    if (
PlayerInfo[playerid][pHelper] >= 1)
    {
        new 
string[128];
        
format(stringsizeof(string), "*%d Helper %s: %s"PlayerInfo[playerid][pHelper], sendernameresult);
        
SendHelperMessage(COR_HELPERstring);
        
PLLogs("helperchat"string);
        
printf("Helper %s: %s"sendernameresult);
    }
    return 
true;
}
CMD:ah(playeridresult[])
{
    
GetPlayerName(playeridsendernamesizeof(sendername));
    if(
isnull(result))
    {
        return 
SendClientMessage(playeridCOLOR_GRAD2"USE: (/ah)dmin/helper [admin/helper chat]");
    }
    new 
string[128];
    if(
PlayerInfo[playerid][pAdmin] >= 1)
    {
        
format(stringsizeof(string), "*%d Admin %s: %s"PlayerInfo[playerid][pAdmin], sendernameresult);
        
ChatHelperAdmin(COLOR_YELLOW2,string);
        
PLLogs("AdminHelperChat"string);
    }
    else if(
PlayerInfo[playerid][pHelper] >= 1)
    {
        
format(stringsizeof(string)," *%d Helper %s: %s"PlayerInfo[playerid][pHelper], sendernameresult);
        
ChatHelperAdmin(COLOR_YELLOW2string);
        
PLLogs("AdminHelperChat"string);
    }
    return 
1;
}
public 
SendHelperMessage(COLORstriing[])
{
    for(new 
i=1!= MAX_ADMINSi++)
    {
        if(
PlayerInfo[i][pHelper] >= 1)
        {
            
SendClientMessage(iCOLORstriing);
        }
    }
    return 
1;
}
public 
ChatHelperAdmin(COLOR,const striing[])
{
    for(new 
i=1!= MAX_ADMINSi++)
    {
        if(
PlayerInfo[i][pHelper] >= || PlayerInfo[i][pAdmin] >= 1)
        {
            
SendClientMessage(iCOLORstriing);
            
printf("%s"striing);
        }
    }
    return 
1;

Reply


Messages In This Thread
[Ajuda] O que tem de errado nesses comandos? - by WiliHacking - 29.12.2016, 12:50
Respuesta: [Ajuda] O que tem de errado nesses comandos? - by SammyJ - 29.12.2016, 16:03
Re: [Ajuda] O que tem de errado nesses comandos? - by WiliHacking - 31.12.2016, 02:24
Re: [Ajuda] O que tem de errado nesses comandos? - by MultiKill - 31.12.2016, 04:03

Forum Jump:


Users browsing this thread: 3 Guest(s)