Server Scripting error
#1

Quote:

if (HouseHasCars == true)
{
vehiclelist[500];
// Add all vehicles to the list
for (CarSlot = 0; CarSlot < 100; CarSlot++)
{
if (AHouseData[HouseID][VehicleIDs][CarSlot] != 0)
{
// Get the index where the first vehicle is found in the ABuyableVehicles array
BuyableCarIndex = VehicleBuyable_GetIndex(GetVehicleModel(AHouseData[HouseID][VehicleIDs][CarSlot]));
// Add the name of the vehicle to the list
format(VehicleList, 500, "%s{FF8000}%s: $%i{FFFFFF}\n", VehicleList, ABuyableVehicles[BuyableCarIndex][CarName], ABuyableVehicles[BuyableCarIndex][Price] / 2);
}
else
format(VehicleList, 500, TXT_EmptyCarSlot, VehicleList);

}

ShowPlayerDialog(playerid, DialogSellCar, DIALOG_STYLE_LIST, TXT_SelectVehicleToSell, VehicleList, TXT_DialogButtonSelect, TXT_DialogButtonCancel);

This script becomes error and does not showing the dialog. what maybe the reason?? please help me in resolving it
Reply
#2

First, OH WAIT i will use my magic wand to get your codes and errors. put in pawn tags please
Reply
#3

i am not getting error pawn error. its getting compiled. but while running the dialog is not displayed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)