please help
#3

Quote:
Originally Posted by Bible
Посмотреть сообщение
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.
when you are at home told me the better one okay?

and this is will sell me the car?
Reply


Messages In This Thread
please help - by salev13 - 09.05.2014, 11:47
Re: please help - by AndySedeyn - 09.05.2014, 12:51
Re: please help - by salev13 - 09.05.2014, 13:32

Forum Jump:


Users browsing this thread: 5 Guest(s)