OnDialog Response should return 0;
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_CAR)
{
if(!response) return 0;
if(DOF2_GetBool(VehicleFile(playerid), "VehicleHave")) return SendClientMessage(playerid, 0xFF0000FF, ".чййн лбш шлб ббтмеък");
DOF2_CreateFile(VehicleFile(playerid));
if(FAC_GetPlayerMoney(playerid) < PlayerData[listitem][vehicle_Price]) return SendClientMessage(playerid, 0xFF0000FF, ".айп бйгк аъ длсу дгшещ");
FAC_GivePlayerMoney(playerid, -PlayerData[listitem][vehicle_Price]);
DOF2_SetString(VehicleFile(playerid), "VehicleName", PlayerData[listitem][vehicle_Name]);
DOF2_SetInt(VehicleFile(playerid), "VehiclePrice", PlayerData[listitem][vehicle_Price]);
DOF2_SetInt(VehicleFile(playerid), "VehicleModel", PlayerData[listitem][vehicle_ID]);
DOF2_SetBool(VehicleFile(playerid), "VehicleHave", true);
DOF2_SaveFile();
SendClientMessage(playerid, 0xFFFF00FF, ".ожм иеб, лтъ йщ ббтмеък шлб");
return 1;
}
return 0;
}
I'm at school now but I'll take a better look when I get home.