Quote:
Originally Posted by focaximubh
pawn Код:
if ( dialogid == skins) { if ( response == 1) { if ( !VBIsNumeric(inputtext)) { SendClientMessage ( playerid , Vermelho, "Valor invбlido, tente novamente!" ) ; return 1; } //ESTAMOS TRATANDO DESSA LINHA if ( StrToInt(inputtext) >= 0 && StrToInt(inputtext) <= 299) { if(StrToInt(inputtext) == 292 || StrToInt(inputtext) == 271 || StrToInt(inputtext) == 272 || StrToInt(inputtext) == 292 || StrToInt(inputtext) == 271 || StrToInt(inputtext) == 272) { SendClientMessage ( playerid , Vermelho, "Skin proibido, tente outro! | ID's = 0-298" ) ; return 1; }
a parte ai acima e abaixo tbm '-'
Realmente apliquei a comparaзгo de forma errada (&& ||)
|
Mano testei esse code aqui e nгo deu esses erros ai >:S, ou o erro estб mais pra cima ou ta meio "bugado"
pawn Код:
if(dialogid == skins)
{
if(response == 1)
{
if(!VBIsNumeric(inputtext))
{
SendClientMessage(playerid, Vermelho, "Valor invбlido, tente novamente!");
return 1;
}
if(StrToInt(inputtext) >= 0 && StrToInt(inputtext) <= 299)
{
if(StrToInt(inputtext) == 292 || StrToInt(inputtext) == 271 || StrToInt(inputtext) == 272 ||
StrToInt(inputtext) == 292 || StrToInt(inputtext) == 271 || StrToInt(inputtext) == 272)
{
SendClientMessage ( playerid , Vermelho, "Skin proibido, tente outro! | ID's = 0-298" ) ;
return 1;
}
}
}
}