[Ajuda] Warnings..
#4

tente
pawn Код:
if(dialogid == 4444)
{
    new nomepl[MAX_PLAYER_NAME];
    GetPlayerName(playerid, nomepl, sizeof(nomepl));
    if(response == 1)
    {
        new aname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, aname, sizeof(aname));
        if(!IsNumeric(inputtext))
        {
            SendClientMessage(playerid, Vermelho, "(x) Valor da cor Invalido!");
            return 1;
        }
        else {
            for(new carro = 0; carro < MAX_CARROS; carro++)
            {
                format(string, sizeof(string), "Carros/carro%d.ini", carro);
                if(strcmp(DOF2_GetString(string, "Dono"), aname, true) == 0)
                {
                    DOF2_SetInt(string, "Cor1", strval(inputtext)); // Linha do Erro - 10122
                    ChangeVehicleColor(DOF2_GetInt(string, "Id"), DOF2_GetInt(string, "Cor1"), DOF2_GetInt(string, "Cor2"));
                }
            }
        }
    }
}
if(dialogid == 4503)
{
    new nomepl[MAX_PLAYER_NAME];
    GetPlayerName(playerid, nomepl, sizeof(nomepl));
    if(response == 1)
    {
        new aname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, aname, sizeof(aname));
        if(!IsNumeric(inputtext))
        {
            SendClientMessage(playerid, Vermelho, "(x) Valor da Cor Invalido!");
            return 1;
        }
        else {
            for(new carro = 0; carro < MAX_CARROS; carro++)
            {
                format(string, sizeof(string), "Carros/carro%d.ini", carro);
                if(strcmp(DOF2_GetString(string, "Dono"), aname, true) == 0)
                {
                    DOF2_SetInt(string, "Cor2", strval(inputtext)); // Linha do Error - 10148
                    ChangeVehicleColor(DOF2_GetInt(string, "Id"), DOF2_GetInt(string, "Cor1"), DOF2_GetInt(string, "Cor2"));
                }
            }
        }
    }
}
Reply


Messages In This Thread
[Ajuda] Warnings.. - by PlayeR_TheReturN - 22.02.2012, 16:54
Re: [Ajuda] Warnings.. - by [NVC]Eduardo - 22.02.2012, 16:56
Re: [Ajuda] Warnings.. - by PlayeR_TheReturN - 22.02.2012, 17:01
Re: [Ajuda] Warnings.. - by paulor - 22.02.2012, 17:26
Re: [Ajuda] Warnings.. - by PlayeR_TheReturN - 22.02.2012, 17:37
Re: [Ajuda] Warnings.. - by PlayeR_TheReturN - 22.02.2012, 17:48
Re: [Ajuda] Warnings.. - by paulor - 22.02.2012, 17:52

Forum Jump:


Users browsing this thread: 1 Guest(s)