My Dialog not showing whats the problem?
#1

My Dialog not showing whats the problem?

PHP код:
            new string[128], VehPrice;
            for(new 
0MAX_VEHICLESi++) 
            {
                if(
IsPlayerInVehicle(playeridi)) return VehPrice GetVehiclePrice(i);
            }
            
format(string,sizeof(string),"sell your vehicle $%d!\n\n?"VehPrice);
            
ShowPlayerDialog(playeridDIALOG_VEHICLE_SELLDIALOG_STYLE_MSGBOX"Selling"string"Sell""Cancel");
stock GetVehiclePrice(vehicleid)
{
    new 
model GetVehicleModel(vehicleid);
    if(
model == 400) return price;
    else if(
model == 401) return price;
    else if(
model == 402) return price;
    else if(
model == 403) return price;
    else if(
model == 404) return price;
    else if(
model == 405) return price;
    else if(
model == 406) return price;
    else if(
model == 408) return price;
    else if(
model == 409) return price;
    else if(
model == 410) return price;
    else return 
0;

and can you guys tell me if the getting car price method is correct or not?
Reply
#2

PHP код:
            new string[128];
           
format(string,sizeof(string),"sell your vehicle $%d!\n\n?"GetVehiclePrice(GetPlayerVehicleID(playerid));
           
ShowPlayerDialog(playeridDIALOG_VEHICLE_SELLDIALOG_STYLE_MSGBOX"Selling"string"Sell""Cancel");
stock GetVehiclePrice(vehicleid)
{
       new 
model GetVehicleModel(vehicleid);
       if(
model == 400) return 30000;
       else if(
model == 401) return 20000;
       else if(
model == 402) return 15000;
       else return 
0;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)