[Ajuda] Warnings..
#1

Boa tarde galera, tou aqui com um sistema de carros , e ele esta dando este error . alguem sabe oque pode ser isto?
Erros:
pawn Код:
D:\Бrea de Trabalho\Servidor\gamemodes\nbg.pwn(10129) : error 017: undefined symbol "StrToInt"
D:\Бrea de Trabalho\Servidor\gamemodes\nbg.pwn(10155) : error 017: undefined symbol "StrToInt"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
Linhas:
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", StrToInt(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", StrToInt(inputtext)); // Linha do Error - 10148
                    ChangeVehicleColor(DOF2_GetInt(string, "Id"), DOF2_GetInt(string, "Cor1"), DOF2_GetInt(string, "Cor2"));
                }
            }
        }
    }
}
Obs:
Sistema de comeзou a dar estes erros assim que eu troquei de dini para dof2
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)