cara vc precisa antes postar as variaveis usadas no comando ou melhor o comando
PHP код:
if(strcmp(cmd, "/conce", true) == 0)
{
format(file, sizeof(file), PASTA_CONTAS, GetPlayerNameEx(playerid));
if(IsPlayerVIP(playerid) || dini_Int(file, "UsouConce") == 0)
{
ShowPlayerDialog(playerid, escolherid, DIALOG_STYLE_INPUT, "Outros", "{FF0000}[x] {00FF00}Os ID's vгo de {FF0000}400 {00FF00}a {FF0000}611\n\n{0000FF}O veнculo custarб $100mil\n\n{00FF00}Digite o ID do veнculo que deseja comprar:", "Comprar", "Cancelar");
}
else
{
SendClientMessage(playerid, Amarelo, "Torne-se um 'VIP' para comprar mais veнculos assim.");
}
return 1;
}
PHP код:
if(dialogid == escolherid)
{
if(response == 1)
{
new Float:Xp, Float:Yp, Float:Zp, Float:anGp;
if(!VBIsNumeric(inputtext))
{
SendClientMessage(playerid, Vermelho, "Valor invбlido, tente novamente!");
}
else
{
if(StrToInt(inputtext) == 425 || StrToInt(inputtext) == 469 || StrToInt(inputtext) == 538 || StrToInt(inputtext) == 537 || StrToInt(inputtext) == 520 || StrToInt(inputtext) == 449 || StrToInt(inputtext) == 447 || StrToInt(inputtext) == 569 || StrToInt(inputtext) == 570 || StrToInt(inputtext) == 432)
{
SendClientMessage(playerid, tcadm, "Veнculo proibido, tente outro! | ID's = 400-611");
}
else
{
if(StrToInt(inputtext) >= 400 && StrToInt(inputtext) <= 611)
{
GetPlayerPos(playerid, Xp, Yp, Zp);
GetPlayerFacingAngle(playerid, anGp);
format(file, sizeof(file), PASTA_CONTAS, GetPlayerNameEx(playerid));
if(dini_Int(file, "VIP") == 0)
{
dini_IntSet(file, "UsouConce", 1);
PlayerAddConceVehicleForPlayer(playerid, StrToInt(inputtext), 100000, Xp, Yp, Zp, anGp, -1, -1);
}
else
{
dini_IntSet(file, "UsouConce", 0);
PlayerAddConceVehicleForPlayer(playerid, StrToInt(inputtext), 100000, Xp, Yp, Zp, anGp, -1, -1);
}
}
else
{
SendClientMessage(playerid, tcadm, "ID fora do normal! | ID's = 400-611");
}
}
}
}
}