Server Scripting error - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Server Scripting error (
/showthread.php?tid=412518)
Server Scripting error -
Height - 02.02.2013
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
Re: Server Scripting error -
Red_Dragon. - 02.02.2013
First, OH WAIT i will use my magic wand to get your codes and errors. put in pawn tags please
Re: Server Scripting error -
Height - 02.02.2013
i am not getting error pawn error. its getting compiled. but while running the dialog is not displayed