[Pedido] comandos que nao existem no serv aparace no chat
#15

Aki eu tentei de todas as maneiras mao nao t oconseguindo man ta dando erro no retur toda hora esse aki e meu ultimo cmd como devo por ?
Me ajudem

PHP код:
    if(strcmp(cmd"/contrato",true) == 0)
    {
        if(
IsPlayerConnected(playerid))
           {
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridCOLOR_GRAD1"USO: /contrato [playerid/Parte-do-Nick] [amount]");
                return 
1;
            }
            
giveplayerid ReturnUser(tmp);
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridCOLOR_GRAD1"USO: /contrato [playerid/Parte-do-Nick] [amount]");
                return 
1;
            }
            
moneys strval(tmp);
            if(
moneys 100 || moneys 10000) { SendClientMessage(playeridCOLOR_GREY"   O contrato deve ser entre R$100 a R$10000)"); return 1; }
            if (
IsPlayerConnected(giveplayerid))
            {
                if(
giveplayerid != INVALID_PLAYER_ID)
                {
                    if(
PlayerInfo[giveplayerid][pMember] == && PlayerInfo[playerid][pMember] == 8)
                    {
                        
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo pode fazer contrato em um Assassino.");
                        return 
1;
                    }
                    if(
PlayerInfo[giveplayerid][pAdmin] >= 1)
                    {
                        
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo pode fazer contrato em um Admin.");
                        return 
1;
                    }
                    else if(
PlayerInfo[giveplayerid][pLeader] == && PlayerInfo[playerid][pMember] == 8)
                    {
                        
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo pode criar os contratos sobre o lнder.");
                        return 
1;
                    }
                    else if(
PlayerInfo[giveplayerid][pMember] == 8||PlayerInfo[giveplayerid][pLeader] == 8)
                    {
                        
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo pode fazer contrato em um Assassino !");
                        return 
1;
                    }
                    if(
gTeam[giveplayerid] == && moneys != 1000)
                    {
                        
SendClientMessage(playeridCOLOR_GREY"   Contrato para cabeзa de policiais somente no valor de R$1000.");
                        return 
1;
                    }
                    if(
giveplayerid == playerid) { SendClientMessage(playeridCOLOR_GREY"Vocк nгo pode fazer um contrato sobre si mesmo."); return 1; }
                    
GetPlayerName(giveplayeridgiveplayersizeof(giveplayer));
                    
GetPlayerName(playeridsendernamesizeof(sendername));
                    
playermoney GetPlayerGP(playerid);
                    if (
moneys && playermoney >= moneys)
                    {
                        
GivePlayerGP(playerid, (moneys));
                        
PlayerInfo[giveplayerid][pHeadValue]+=moneys;
                        
format(stringsizeof(string), "<< %s criou um contrato sobre %s, por R$ %d. >>",sendernamegiveplayermoneys);
                        
SendFamilyMessage(8COLOR_YELLOWstring);
                        
format(stringsizeof(string), "Vocк criou um contrato sobre %s, por R$ %d.",giveplayermoneys);
                        
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                        
PlayerPlaySound(playerid10520.00.00.0);
                    }
                    else
                    {
                        
SendClientMessage(playeridCOLOR_GRAD1"   O valor de transiзгo do contrato estб invбlido.");
                    }
                }
            }
            else
            {
                
format(stringsizeof(string), "   %d nгo й um ID vбlido"giveplayerid);
                
SendClientMessage(playeridCOLOR_GRAD1string);
            }
        }
        return 
1;
    }
    return 
1;

Reply


Messages In This Thread
[Pedido] comandos que nao existem no serv aparace no chat - by vitorpedro - 04.10.2011, 20:13
Re: [Pedido] comandos que nao existem no serv aparace no chat - by Vai_Besta - 04.10.2011, 20:16
Re: [Pedido] comandos que nao existem no serv aparace no chat - by vitorpedro - 04.10.2011, 20:33
Re: [Pedido] comandos que nao existem no serv aparace no chat - by WLSF - 04.10.2011, 20:33
Re: [Pedido] comandos que nao existem no serv aparace no chat - by [S]trong - 04.10.2011, 21:22
Re: [Pedido] comandos que nao existem no serv aparace no chat - by vitorpedro - 05.10.2011, 15:21
Re: [Pedido] comandos que nao existem no serv aparace no chat - by Pharrel - 05.10.2011, 15:30
Re: [Pedido] comandos que nao existem no serv aparace no chat - by Lуs - 05.10.2011, 15:56
Re: [Pedido] comandos que nao existem no serv aparace no chat - by vitorpedro - 08.10.2011, 13:59
Re: [Pedido] comandos que nao existem no serv aparace no chat - by Lуs - 08.10.2011, 14:28
Re: [Pedido] comandos que nao existem no serv aparace no chat - by ceesar90 - 08.10.2011, 15:19
Re: [Pedido] comandos que nao existem no serv aparace no chat - by vitorpedro - 08.10.2011, 16:38
Re: [Pedido] comandos que nao existem no serv aparace no chat - by [BWL]DuST - 08.10.2011, 16:57
Re: [Pedido] comandos que nao existem no serv aparace no chat - by MatriXBorn - 08.10.2011, 17:02
Re: [Pedido] comandos que nao existem no serv aparace no chat - by vitorpedro - 11.10.2011, 19:16
Re: [Pedido] comandos que nao existem no serv aparace no chat - by vitorpedro - 11.10.2011, 20:26
Re: [Pedido] comandos que nao existem no serv aparace no chat - by Y_Baby - 11.10.2011, 22:17

Forum Jump:


Users browsing this thread: 2 Guest(s)