//car dealership
if(dialogid == 2041)//receive money amount
{
if(!response)//if cancel, cancel
{
return 1;
}
printf("%i",strval(inputtext));
if(strval(inputtext) < 1000 || strval(inputtext) > 10000000)
{
//not valid number
ShowPlayerDialog(playerid,2041,DIALOG_STYLE_INPUT,"Vehicle Ownership","To sell this vehicle,\nplease enter a valid amount of money(1000-10000000)","Ok","Cancel");
}
//give confirm
//format(message,sizeof(message),"Vehicle informations.\n\n\tLicense plate: %i\n\tModel: %s\n\tPrice: %i\n\nAre you sure you want to sell this vehicle?",GetPlayerVehicleID(playerid)+1000,VehiclesName[GetVehicleModel(GetPlayerVehicleID(playerid))+400],strval(inputtext));
//ShowPlayerDialog(playerid,2042,DIALOG_STYLE_MSGBOX,"Vehicle Dealership","teat","Yes","Back");
ShowPlayerDialog(playerid,2042,DIALOG_STYLE_MSGBOX,"Vehicle Dealership","teat","Yes","Back");
return 1;
}
if(!(1000 <= strval(inputtext) <= 10_000_000))
|
you used the underlines in your 10 million, can you explain why?
thanks |
//not valid number ShowPlayerDialog(playerid,2041,DIALOG_STYLE_INPUT,"Vehicle Ownership","To sell this vehicle,\nplease enter a valid amount of money(1000-10000000)","Ok","Cancel");
ShowPlayerDialog(playerid,2042,DIALOG_STYLE_MSGBOX,"Vehicle Dealership","teat","Yes","Back"); return 1;