[Ajuda] dialogid
#1

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;
    }
Reply
#2

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;
    }
Reply
#3

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;
    }

Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)