SA-MP Forums Archive
[Ajuda] dialogid - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] dialogid (/showthread.php?tid=550743)



dialogid - JoshNudock - 14.12.2014

Alguuem me ajuda pq eu coloco pra depositar maconha no cofre da org e nгo deposita maconha nada, nem aparece a mensagem.

pawn Код:
if (dialogid == 22)
    {
        if (response >= 1)
        {
            new org = GetPlayerOrg(playerid);
            new depmac = strval(inputtext);
            new cMaconha = PlayerInfo[playerid][pMaconha];
            if (cMaconha < depmac)
            {
                SendClientMessage(playerid, COLOR_GRAD3, "Vocк nгo tem isso tudo de maconha");
                return true;
            }
            if (depmac > 0)
            {
                if (cMaconha >= depmac)
                {
                    PlayerInfo[playerid][pMaconha] = cMaconha - depmac;
                    DepositarMaconhaOrg(org, depmac);
                    format(string, sizeof(string), "* Colocou %d de maconha, new saldo: %d", depmac, CofreOrg[org][Maconha]);
                    SendClientMessage(playerid, COLOR_SOUGAY, string);
                }
            }
        }
        return true;
    }



Re: dialogid - ipsLuan - 14.12.2014

Tente assim.

pawn Код:
if (dialogid == 22)
    {
        if (response)
        {
            new org = GetPlayerOrg(playerid);
            new depmac = strval(inputtext);
            new cMaconha = PlayerInfo[playerid][pMaconha];
            if (cMaconha < depmac)
            {
                SendClientMessage(playerid, COLOR_GRAD3, "Vocк nгo tem isso tudo de maconha");
                return 1;
            }
            if (depmac > 0)
            {
                if (cMaconha >= depmac)
                {
                    PlayerInfo[playerid][pMaconha] = cMaconha - depmac;
                    DepositarMaconhaOrg(org, depmac);
                    format(string, sizeof(string), "* Colocou %d de maconha, new saldo: %d", depmac, CofreOrg[org][Maconha]);
                    SendClientMessage(playerid, COLOR_SOUGAY, string);
                }
            }
        }
        return 1;
    }



Re: dialogid - [BOPE]Seu._.Madruga - 14.12.2014

Desperdiзando linhas atoa... e me passa o IP do seu servidor por PM, vou dar um pulo lб.

PHP код:
if(dialogid == 22)
{
    if(
response)
    {
        if(
PlayerInfo[playerid][pMaconha] < strval(inputtext)) return SendClientMessage(playeridCOLOR_GRAD3"Vocк nгo tem isso tudo de maconha");
        
PlayerInfo[playerid][pMaconha] = PlayerInfo[playerid][pMaconha] - strval(inputtext);
        
DepositarMaconhaOrg(GetPlayerOrg(playerid), strval(inputtext));
        
format(stringsizeof(string), "* Colocou %d de maconha, new saldo: %d"strval(inputtext), CofreOrg[GetPlayerOrg(playerid)][Maconha]);
        
SendClientMessage(playeridCOLOR_SOUGAYstring);
        return 
1;
    }




Re: dialogid - JoshNudock - 14.12.2014

Estб na minha assinatura [BOPE], sу clicar...