10.06.2014, 20:07
For some reason the vehicleid "DealerVeh" is not being called (With/without an array). Can anyone tell me why it's not showing the dialog when players enter the vehicles?
pawn Код:
new DealerVeh1;
new DealerVeh2;
new DealerVeh3;
new DealerVeh4;
//ongamemodeinit
//VEHICLE DEALERSHIP1 (BLUEBERRY)
DealerVeh1 = CreateVehicle(542,358.1000100,-78.9000000,1.2000000,180.0000000,105,88,15); //Clover
DealerVeh2 = CreateVehicle(540,362.1000100,-78.9000000,1.4000000,180.0000000,156,161,15); //Vincent
DealerVeh3 = CreateVehicle(533,366.8999900,-79.1000000,1.2000000,180.0000000,54,65,15); //Feltzer
DealerVeh4 = CreateVehicle(549,371.3999900,-79.0000000,1.2000000,178.0000000,77,50,15); //Tampa
//entering the vehicle
//Blueberry dealership
if(vehicleid == DealerVeh1)
{
ShowPlayerDialog(playerid, DEALER_CLOVER, DIALOG_STYLE_MSGBOX, "Purchase Vehicle?", "Buy for $825", "Buy", "Cancel");
}
if(vehicleid == DealerVeh2)
{
ShowPlayerDialog(playerid, DEALER_VINCENT, DIALOG_STYLE_MSGBOX, "Purchase Vehicle?", "Buy for $1,250", "Buy", "Cancel");
}
if(vehicleid == DealerVeh3)
{
ShowPlayerDialog(playerid, DEALER_FELTZER, DIALOG_STYLE_MSGBOX, "Purchase Vehicle?", "Buy for $2,250", "Buy", "Cancel");
}
if(vehicleid == DealerVeh4)
{
ShowPlayerDialog(playerid, DEALER_TAMPA, DIALOG_STYLE_MSGBOX, "Purchase Vehicle?", "Buy for 1,000$", "Buy", "Cancel");
}