[Ajuda] Comando /sacar
#7

Continou o erro, Code:

PHP код:
if(strcmp(cmd"/sacar"true) == 0)
{
    
format(filesizeof(file), PASTA_CONTASPlayerName(playerid));
    new 
checknome;
    new 
tmp[256];
    
checknome CPS_GetPlayerCheckpoint(playerid);
    if(
checknome == caixaeletronico1 || checknome == caixaeletronico2 || checknome == caixaeletronico3 || checknome == caixaeletronico4 || checknome == caixaeletronico5 || checknome == caixaeletronico6 || checknome == caixaeletronico7 || checknome == caixaeletronico8 || checknome == bancoPref)
    {
        
tmp strtok(cmdtextidx);
        if(!
strlen(tmp))
        {

            
SendClientMessage(playeridVermelho"Use /sacar [quantia].");
        }
        if(
strval(tmp) < 0)
        {
            
SendClientMessage(playeridVermelho"Use /sacar [quantia].");
        }
        new 
valor;
        
valor strval(tmp);
        new 
aname[MAX_PLAYER_NAME];
        
GetPlayerName(playeridanameMAX_PLAYER_NAME);
        if(
dini_Int(file"ContaBancaria") == 1)
        {

            if(
dini_Int(file"SaldoBancario") > valor<=1)
            {

                
format(stringsizeof(string), "(INFO) Banco Vida Virtual: Vocк sacou a quantia de R$%d."valor);
                
SendClientMessage(playeridVerdestring);
                
dini_IntSet(file"SaldoBancario"dini_Int(file"SaldoBancario")-valor);
                
GivePlayerGrana(playeridvalor);
                return 
1;
            }
            else
            {

                
SendClientMessage(playeridVermelho"(ERRO) Vocк nгo tem todo este dinheiro.");
            }

        }
        else
        {

            
SendClientMessage(playeridVermelho"(ERRO) Vocк nгo tem uma conta bancбria.");
        }
    }
    else
    {

        
SendClientMessage(playeridVermelho"(ERRO) Vocк nгo estб em um Banco.");
    }

Reply


Messages In This Thread
Comando /sacar - by Equipe - 19.01.2013, 02:08
Re: Comando /sacar - by Maklister - 19.01.2013, 02:13
Re: Comando /sacar - by Equipe - 19.01.2013, 02:21
Re: Comando /sacar - by Maklister - 19.01.2013, 02:40
Re: Comando /sacar - by Equipe - 19.01.2013, 02:50
Re: Comando /sacar - by Miqueias Barros - 19.01.2013, 03:16
Re: Comando /sacar - by Equipe - 19.01.2013, 03:27
Re: Comando /sacar - by Miqueias Barros - 19.01.2013, 03:29
Re: Comando /sacar - by Maklister - 19.01.2013, 03:30
Re: Comando /sacar - by Equipe - 19.01.2013, 03:30

Forum Jump:


Users browsing this thread: 1 Guest(s)