#1

Hello Can any one make it on normal msg

Its in Dailogbox i need it in normal message

Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
	if(newstate == PLAYER_STATE_DRIVER)
	{
	    new
	        vehicleid = GetPlayerVehicleID(playerid),
	        dialog_string[128];

		if(VehicleStatistics[vehicleid][vehicle_onsale] == 1)
		{
		    format(dialog_string, sizeof(dialog_string), "Would you like to buy this %s costing $%d?", GetVehicleName(vehicleid), VehicleStatistics[vehicleid][vehicle_price]);
		    ShowPlayerDialog(playerid, 1337, DIALOG_STYLE_MSGBOX, "Car Purchase", dialog_string, "Yes", "No");
			return 1;
		}
	}
	return 1;
}
Reply


Messages In This Thread
Help - by WarToFar - 26.12.2011, 14:38
Re: Help - by [MG]Dimi - 26.12.2011, 15:10

Forum Jump:


Users browsing this thread: 1 Guest(s)