15.03.2016, 23:23
Olб, apуs eu usar a funзгo dessa dialog, o samp-server fecha automaticamente.
Dialog:
Dialog:
PHP код:
Dialog:MDCVehicle(playerid, response, listitem, inputtext[])
{
if (GetFactionType(playerid) != FACTION_POLICE || !IsACruiser(GetPlayerVehicleID(playerid)))
return 0;
if(response)
{
new string[256];
for(new i=0; i<MAX_VEHICLES; i++)
{
if(strcmp(inputtext,CarData[i][carPlaca], true) == 0)
{
if(strcmp(inputtext,CarData[i][carPlaca], false) == 0)
{
Dialog_Show(playerid, MDCVehicle, DIALOG_STYLE_INPUT, "Mobile Data Computer - Procura de Placa", "PROCURA DE PLACA\n\nInsira a informaзгo da placa:\n{FF0000}Placa nгo encontrada.", "OK", "");
return 1;
}
format(string, sizeof(string), "RESULTADO DE BUSCA\n\nPlaca do Veнculo: %d\nModelo do Veнculo: %s\nDono do Veнculo: %s", CarData[i][carPlaca], ReturnVehicleModelName(CarData[i][carModel]), CarData[i][carOwner]);
Dialog_Show(playerid, MDCResult, DIALOG_STYLE_MSGBOX, "Procurar Placa", string, "Cancelar", "");
}
}
}
return 1;
}