question
#1

Код:
CMD:rentvehicle(playerid, params[])
{
	new vehicleid, string[256], string2[256], id;
	if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first.");
	if(PlayerInfo[playerid][pCash] < 30000) return SendClientMessage(playerid, COLOR_WHITE, "Nu ai suma necesara de bani. (30.000$)");
	if(IsPlayerInVehicle(playerid, vehicleid)) return SendClientMessage(playerid, COLOR_WHITE, "Nu poti inchiria un vehicul atat timp cat tu te afli intr-o masina.");
	if(!IsPlayerInRangeOfPoint(playerid, 10.0, -2240.7644,539.0970,35.1488)) return SendClientMessage(playerid, COLOR_WHITE, "Nu te afli in locatia corecta.");
	strcat(string2, "Vehicle\tIn Stock\n");
	format(string, sizeof(string), "%s\t30\n", VehiculeRent(id);
	strcat(string, string2);
	
	ShowPlayerDialog(playerid, DIALOG_RENTCAR, DIALOG_STYLE_TABLIST_HEADERS, "RentCar", string2, "Select", "Cancel");

	return 1;
}
Код:
stock VehiculeRent(id){
	new string[256];
	switch(id){
		case 0: string = "Infernus";
		case 1: string = "Sultan";
		case 2: string = "Bravura";
		case 3: string = "Perenial";
	}
	return string;
}
Ok so i created those, my dialog looks like this:
https://imgur.com/a/IoPGrWV

and i want it look like this:
https://imgur.com/a/WRMduxX

how can i do this? is the stock needed here?
Reply


Messages In This Thread
question - by enzulikeS - 04.05.2018, 16:39
Re: question - by TadePoleMG - 04.05.2018, 16:46
Re: question - by enzulikeS - 04.05.2018, 17:13
Re: question - by enzulikeS - 04.05.2018, 17:16
Re: question - by Zeth - 04.05.2018, 17:31
Re: question - by TadePoleMG - 04.05.2018, 17:40

Forum Jump:


Users browsing this thread: 3 Guest(s)