[Ajuda] Warnings.. -
PlayeR_TheReturN - 22.02.2012
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
Re: [Ajuda] Warnings.. -
[NVC]Eduardo - 22.02.2012
Tente.
pawn Код:
new StrToInt[256]
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"));
}
}
}
}
}
Re: [Ajuda] Warnings.. -
PlayeR_TheReturN - 22.02.2012
N adiantou veio mas erros '-'
Re: [Ajuda] Warnings.. -
paulor - 22.02.2012
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"));
}
}
}
}
}
Re: [Ajuda] Warnings.. -
PlayeR_TheReturN - 22.02.2012
Tipo manolo antes aparecia varios numeros .. etc das celulas peso do gm. agora so aparece
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
tem nada n?
Re: [Ajuda] Warnings.. -
PlayeR_TheReturN - 22.02.2012
Tipo manolo antes aparecia varios numeros .. etc das celulas peso do gm. agora so aparece
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
tem nada n?
@ Aff desculpa o double tava aberta --'
Re: [Ajuda] Warnings.. -
paulor - 22.02.2012
Assim й melhor pois seu GM nгo esta pesado! quando aparece o peso й porque o seu GM compilou com sucesso mais ele tem celular desnecessarias.