[AJUDA]Comando nao pega
#5

Ajeitei aki e ok, mais se eu digita qualquer quantia tendo o dinheiro diz quantia invalida segue as linhas:

Linhas:

PHP Code:
if(strcmp(cmd"/darmala"true) == 0)
    {
            if(
Info[playerid][SemMala] == true)
            {
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp))
                {
                
SendClientMessage(playerid,-1,"Digite: /darmala [ID do Jogador] [Quantia de Grana]");
                return 
1;
                }
                
tmp strtok(cmdtextidx);
                if(!
strlen(tmp))
                {
                    
SendClientMessage(playeridCOLOR_GRAD1"USO: /pagar [playerid/Parte-do-Nick] [quantia]");
                    return 
1;
                }
                
money strval(tmp);
                if(
money || money 100000)
                {
                    
SendClientMessage(playerid0xC2A2DAAA," Os valores devem estar entre R$ 1 e R$ 100.000");
                    return 
1;
                }
                
money strval(tmp);
                
playermoney[playerid] = GetPlayerMoneyEx(playerid);
                if(
money && playermoney[playerid] >= money)
                {
                    new 
pidString[128];
                    
tmp strtok(cmdtextidx);
                    
pid strval(tmp);
                    
GivePlayerMoney(pidmoney);
                    
GivePlayerMoney(playerid, -money);
                    
format(String,128,"Vocк deu $%i para o ID %i",money,pid);
                    
SendClientMessage(playerid,-1,String);
                }
                else
                {
                    
SendClientMessage(playeridCOLOR_GRAD1"   Quantia invбlida");
                   }
               }
            else
            {
                
SendClientMessage(playeridCOLOR_GRAD1"   Voce Nao Tem uma Mala.");
            }
            return 
1;
        } 
Reply


Messages In This Thread
[AJUDA]Comando nao pega - by atsbs - 29.11.2011, 02:09
Re: [AJUDA]Comando nao pega - by Josma_cmd - 29.11.2011, 02:27
Re: [AJUDA]Comando nao pega - by atsbs - 29.11.2011, 02:41
Re: [AJUDA]Comando nao pega - by Josma_cmd - 29.11.2011, 02:50
Re: [AJUDA]Comando nao pega - by atsbs - 29.11.2011, 02:57
Re: [AJUDA]Comando nao pega - by Adrian Fahrenheit Tepes - 29.11.2011, 10:09

Forum Jump:


Users browsing this thread: 1 Guest(s)