[Ajuda] ajuda cmd nгo pega
#1

PHP код:
CMD:trabalhar(playerid)
{
    if(
Player[playerid][qAdmin] <= Moderador) return SendClientMessage(playerid,0xEE9292F6,"Vocк nгo estб autorizado a usar este comando!");
    if(
VerificarADM[playerid] == 0)
    {
        
VerificarADM[playerid] = 1;
        if(
Player[playerid][qSexo] == 1)
         {
             
SetPlayerSkin(playerid,217);
         }
        if(
Player[playerid][qSexo] == 2)
         {
             
SetPlayerSkin(playerid,211);
         }
        
SetPlayerColor(playerid0xF199FFAA);
        
SetPlayerHealth(playerid999999);
        
format(String,sizeof(String), "Administrador(a) %s esta trabalhando veja mais em /admins"PlayerNick(playerid));
        
SendClientMessageToAll(-1String);
    }
    
CMD_jogar(playerid)
    {
        
VerificarADM[playerid] = 0;
        if(
Player[playerid][qSexo] == 1)
         {
            
SetPlayerSkin(playerid,96);
         }
        if(
Player[playerid][qSexo] == 2)
         {
             
SetPlayerSkin(playerid,190);
         }
        
SetPlayerColor(playerid, -1);
        
SetPlayerHealth(playerid999999);
        
format(String,sizeof(String), "Administrador(a) %s esta jogando veja mais em /admins"PlayerNick(playerid));
        
SendClientMessageToAll(-1String);
    }
    return 
true;

erro:

PHP код:
C:\Users\dos\Desktop\BU\gamemodes\BU.pwn(2300) : error 017undefined symbol "CMD_jogar"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
1 Error

Reply
#2

Pronto.


PHP код:
CMD:trabalhar(playerid){
    if(
Player[playerid][qAdmin] <= Moderador) return SendClientMessage(playerid,0xEE9292F6,"Vocк nгo estб autorizado a usar este comando!");
    if(
VerificarADM[playerid] == 0){
        
VerificarADM[playerid] = 1;
        if(
Player[playerid][qSexo] == 1SetPlayerSkin(playerid,217);
        if(
Player[playerid][qSexo] == 2SetPlayerSkin(playerid,211);
        
SetPlayerColor(playerid0xF199FFAA);
        
SetPlayerHealth(playerid999999);
        
format(String,sizeof(String), "Administrador(a) %s esta trabalhando veja mais em /admins"PlayerNick(playerid));
        
SendClientMessageToAll(-1String);
    }
    return 
true;
}
CMD:jogar(playerid){
    
VerificarADM[playerid] = 0;
    if(
Player[playerid][qSexo] == 1SetPlayerSkin(playerid,96);
    if(
Player[playerid][qSexo] == 2SetPlayerSkin(playerid,190);
    
SetPlayerColor(playerid, -1);
    
SetPlayerHealth(playerid999999);
    
format(String,sizeof(String), "Administrador(a) %s esta jogando veja mais em /admins"PlayerNick(playerid));
    
SendClientMessageToAll(-1String);

Reply
#3

'-'

pawn Код:
CMD:trabalhar(playerid)
{
    if(Player[playerid][qAdmin] <= Moderador) return SendClientMessage(playerid,0xEE9292F6,"Vocк nгo estб autorizado a usar este comando!");
    if(VerificarADM[playerid] == 0)
    {
        VerificarADM[playerid] = 1;
        if(Player[playerid][qSexo] == 1)
         {
             SetPlayerSkin(playerid,217);
         }
        if(Player[playerid][qSexo] == 2)
         {
             SetPlayerSkin(playerid,211);
         }
        SetPlayerColor(playerid, 0xF199FFAA);
        SetPlayerHealth(playerid, 999999);
        format(String,sizeof(String), "Administrador(a) %s esta trabalhando veja mais em /admins", PlayerNick(playerid));
        SendClientMessageToAll(-1, String);
    }
    return 1;
}
CMD_jogar(playerid)
{
        VerificarADM[playerid] = 0;
        if(Player[playerid][qSexo] == 1)
         {
            SetPlayerSkin(playerid,96);
         }
        if(Player[playerid][qSexo] == 2)
         {
             SetPlayerSkin(playerid,190);
         }
        SetPlayerColor(playerid, -1);
        SetPlayerHealth(playerid, 999999);
        format(String,sizeof(String), "Administrador(a) %s esta jogando veja mais em /admins", PlayerNick(playerid));
        SendClientMessageToAll(-1, String);

    }
    return true;
}
Reply
#4

Mais tipo eu vou acrecentar o /AFK ai quando o player digita /infoadmin vai aparecer

Use: /trabalhar /jogar /afk

e deu esse warning

PHP код:
C:\Users\Petrick\Desktop\BU\gamemodes\BU.pwn(2591) : warning 203symbol is never used"CMD_jogar" 
Reply
#5

Troque isto:

PHP код:
CMD_jogar(playerid
Por isto:

PHP код:
CMD:jogar(playerid
Reply
#6

Cуdigo acima arrumado, troque o 'CMD_' por 'CMD:'
Reply
#7

Pegou, vlw Thiago!
Reply
#8

Agr o /trabalhar nгo pega sу os /afk e /jogar

PHP код:
CMD:trabalhar(playerid)
{
    if(
Player[playerid][qAdmin] <= Moderador) return SendClientMessage(playerid,0xEE9292F6,"Vocк nгo estб autorizado a usar este comando!");
       if(
VerificarADM[playerid] == 0)
    {
           
VerificarADM[playerid] = 0;
           if(
Player[playerid][qSexo] == 1SetPlayerSkin(playerid,217);
           if(
Player[playerid][qSexo] == 2SetPlayerSkin(playerid,211);
           
SetPlayerColor(playerid0xF199FFAA);
           
SetPlayerHealth(playerid999999);
           
format(String,sizeof(String), "Administrador(a) %s esta trabalhando veja mais em /admins"PlayerNick(playerid));
           
SendClientMessageToAll(-1String);
    }
    return 
true;
}
CMD:jogar(playerid)
{
    
VerificarADM[playerid] = 1;
    if(
Player[playerid][qSexo] == 1SetPlayerSkin(playerid,96);
    if(
Player[playerid][qSexo] == 2SetPlayerSkin(playerid,190);
    
SetPlayerColor(playerid, -1);
    
SetPlayerHealth(playerid999999);
    
format(String,sizeof(String), "Administrador(a) %s esta jogando veja mais em /admins"PlayerNick(playerid));
    
SendClientMessageToAll(-1String);
    return 
true;
}
CMD:afk(playerid)
{
    
VerificarADM[playerid] = 2;
    
format(String,sizeof(String), "Administrador(a) %s esta AFK veja mais em /admins"PlayerNick(playerid));
    
SendClientMessageToAll(-1String);
    return 
true;

Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)