[AJUDA]Alguns comandos deixaram de funcionar
#1

Codigo adminduty e gm duty
PHP код:
if(!strcmp(cmdtext"/gmserviзo "true)) // By Ellis
    
{
        if(
IsPlayerConnected(playerid))
        {
            if(
gPlayerLogged[playerid] == 0)
            {
                
SendClientMessage(playeridCOLOR_RED"   Vocк precisa fazer o login em primeiro lugar!");
                return 
1;
            }
            if(
PlayerInfo[playerid][pAdmin] > 1)
            {
                if(
AdminDuty[playerid] == 0)
                {
                    
AdminDuty[playerid] = 1;
                    
SetPlayerArmour(playerid999);
                    
SetPlayerHealth(playerid999);
                    
SetPlayerColor(playerid,0xFFBE3374);
                    
GetPlayerName(playeridsendernamesizeof(sendername));
                    
format(stringsizeof(string), "[GameMaster ID-%d] %s estб agora de seviзo"playeridsendername);
                    
ABroadCast(0xFFBE3374,string,1);
                    if(
PlayerInfo[playerid][pAdmin] >= 1)
                    {
                        for(new 
0sizeof(CarInfo); i++)
                        {
                            
SetVehicleParamsForPlayer(i,playerid,0,0);
                        }
                    }
                    return 
1;
                }
                else if(
AdminDuty[playerid] == 1)
                {
                    
AdminDuty[playerid] = 0;
                    
SetPlayerArmour(playerid0);
                    
SetPlayerHealth(playerid100);
                    
SetPlayerColor(playerid,COLOR_WHITE);
                    
GetPlayerName(playeridsendernamesizeof(sendername));
                    
format(stringsizeof(string), "[GameMaster ID-%d] %s estб agora fora de seviзo"playeridsendername);
                    
ABroadCast(0xFFBE3374,string,1);
                    return 
1;
                }
            }
            else
            {
                
SendClientMessage(playeridCOLOR_RED" Tu nгo йs GameMaster  ");
                return 
1;
            }
        }
        return 
1;
    }
    if(!
strcmp(cmdtext"/adminserviзo "true)) // By Ellis
    
{
        if(
IsPlayerConnected(playerid))
        {
            if(
gPlayerLogged[playerid] == 0)
            {
                
SendClientMessage(playeridCOLOR_RED"   Vocк precisa fazer o login em primeiro lugar!");
                return 
1;
            }
            if(
PlayerInfo[playerid][pAdmin] > 3)
            {
                if(
AdminDuty[playerid] == 0)
                {
                    
AdminDuty[playerid] = 1;
                    
SetPlayerArmour(playerid999);
                    
SetPlayerHealth(playerid999);
                    
SetPlayerColor(playerid,COLOR_ASKQ);
                    
GetPlayerName(playeridsendernamesizeof(sendername));
                    
format(stringsizeof(string), "[Administrador ID-%d] %s estб agora de seviзo"playeridsendername);
                    
ABroadCast(COLOR_ASKQ,string,1);
                    if(
PlayerInfo[playerid][pAdmin] >= 2)
                    {
                        for(new 
0sizeof(CarInfo); i++)
                        {
                            
SetVehicleParamsForPlayer(i,playerid,0,0);
                        }
                    }
                    return 
1;
                }
                else if(
AdminDuty[playerid] == 1)
                {
                    
AdminDuty[playerid] = 0;
                    
SetPlayerArmour(playerid0);
                    
SetPlayerHealth(playerid100);
                    
SetPlayerColor(playerid,COLOR_WHITE);
                    
GetPlayerName(playeridsendernamesizeof(sendername));
                    
format(stringsizeof(string), "[Administrador ID-%d] %s estб agora fora de seviзo"playeridsendername);
                    
ABroadCast(COLOR_ASKQ,string,1);
                    return 
1;
                }
            }
            else
            {
                
SendClientMessage(playeridCOLOR_RED" Tu nгo йs admin  ");
                return 
1;
            }
        }
        return 
0;
    } 
PHP код:
    if (strcmp(cmd"/estatisticasjogador"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            if (
PlayerInfo[playerid][pAdmin] >= 1)
            {
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp))
                {
                    
SendClientMessage(playeridCOLOR_RED"USA: /estatisticasjogador [JogadorID/Nome]");
                    return 
1;
                }
                
//giveplayerid = strval(tmp);
                
giveplayerid ReturnUser(tmp);
                if(
IsPlayerConnected(giveplayerid))
                {
                    if(
giveplayerid != INVALID_PLAYER_ID)
                    {
                        
ShowStats(playerid,giveplayerid);
                    }
                }
                else
                {
                    
SendClientMessage(playeridCOLOR_RED"   Nenhum jogador, tais");
                }
            }
            else
            {
                
SendClientMessage(playeridCOLOR_RED"   Tu nao es administador");
            }
        }
        return 
1;
    } 
e nao sei se ha mais comandos a falhar ... mas eu tive a visualizar os comandos e parece estar tudo bem :S
Reply
#2

pawn Код:
return 0;
mude para
pawn Код:
return 1;
Reply
#3

nao da na mesma :S
Reply
#4

vc deve ter colokado augum comando que deu comflito nesses ai ^^ cheque os ultimos cmds que colokou.
cmg ja aconteceu isso tbm ^^
Reply
#5

pois mas isso ja foi ontem eu esquecime do que meti

FS tambem conta ?
Reply
#6

acho que sim !
Reply
#7

lol esqueca fui eu que tinha isto mal vejam o que fiz "/adminserviзo " e eu reparei xD e meti "/adminserviзo"

e o "/estatisticajogador" nao dava pq e uma palavra muito grande mas ja mudei tb
Reply
#8

Olhe as chaves que vocк colocou ou algum comando igual, porque isso ja aconteceu comigo.
Tenta comentar o comando que vem em cima de um deles e testa o cmd.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)