29.04.2012, 02:14
(
Последний раз редактировалось Deal-or-die; 29.04.2012 в 04:04.
)
Hey Hey,
Since my last post failed i'll try writing this a little bit clearer
This is what i currently have:
So far i have a dialog menu that once typed /buyvehicle this list of vehicles appears.
If you click on a vehicle it takes you too the vehicles description and price Dialog.
If you choose to continue it takes you to the Vehicle 'Primary Colour' dialog
This is what i want:
I want the 'Primary Colour' dialog to save the selection while you continue to the 'Secondary Colour' dialog.
Once the 'Secondary Colour' has been selected i want the vehicle to be spawned at a set location (Yes i have the cords)
Command '/buyvehicle'
Vehicle Price and Description - Displays the Price and Description on the selected vehicle
If the player chose to Continue it would show you the Primary Colour Dialog otherwise it would return you back to the 'Vehicle List'
Eh, self explanatory but the 'Primary Colour Table'
I wasn't sure how to do this so i was going to breakup all the colours separately and go from there but kinda confused my self at this point...
Ignore the colour IDs are wrong but thats just an example.
Since my last post failed i'll try writing this a little bit clearer
This is what i currently have:
So far i have a dialog menu that once typed /buyvehicle this list of vehicles appears.
If you click on a vehicle it takes you too the vehicles description and price Dialog.
If you choose to continue it takes you to the Vehicle 'Primary Colour' dialog
This is what i want:
I want the 'Primary Colour' dialog to save the selection while you continue to the 'Secondary Colour' dialog.
Once the 'Secondary Colour' has been selected i want the vehicle to be spawned at a set location (Yes i have the cords)
Command '/buyvehicle'
pawn Код:
ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Catalogue", "Stretch\r\nCheetah\r\nAdmiral\r\nFeltzer\r\nHuntley\r\nBanshee\r\nBuffalo...
pawn Код:
case 100:
{
if(!response)
{
return 1;
}
switch(listitem)
{
case 0://Stretch
{
ShowPlayerDialog(playerid, 101, DIALOG_STYLE_MSGBOX, "Vehicle Information", "Price:\n $275,555\n\nDescription:\n An American Stretch Limousine designed for comfort and style.\n Perfect for a high income business.","Continue","Back");
}
case 1://Cheetah
{
ShowPlayerDialog(playerid, 102, DIALOG_STYLE_MSGBOX, "Vehicle Information", "Price:\n $550,000\n\nDescription:\n An Italian designed and manufactured supercar.\n Perfect for the wealthy who are inspired by a little bit of style","Continue","Back");
}
case 2://Admiral
{
ShowPlayerDialog(playerid, 103, DIALOG_STYLE_MSGBOX, "Vehicle Information", "Price:\n $\n\nDescription:","Continue","Back");
}...
pawn Код:
case 101://Stretch
{
if(!response)
{
ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Catalogue", "Stretch\r\nCheetah\r\nAdmiral\r\nFeltzer\r\nHuntley\r\nBanshee\r\nBuffalo\r\nComet\r\nSuper GT\r\nElegy\r\nTurismo\r\nAlpha\r\nEuros\r\nFlash\r\nJester\r\nZR-350\r\nElegant\r\nFortune\r\nSentinel\r\nStafford\r\nSultan\r\nWashington\r\nMerit","Continue","Cancel");
}
if(response)
{
ShowPlayerDialog(playerid, 150, DIALOG_STYLE_LIST, "Select a Primary vehicle colour", "{FF0000}||||||\r\n{00FF00}||||||\r\n{0000FF}||||||\r\n{FFFF00}||||||\r\n{00FFFF}||||||","Continue","Back");
}
}
pawn Код:
case 150://Primary Colour Table
{
if(!response)
{
return 1;
}
switch(listitem)
{
case 0://Red
{
ShowPlayerDialog(playerid, 124, DIALOG_STYLE_LIST, "Primary Colour: {FF0000}RED, Please choose Secondary Colour", "{FF0000}||||||\r\n{00FF00}||||||\r\n{0000FF}||||||\r\n{FFFF00}||||||\r\n{00FFFF}||||||","Continue","Back");
}
}
}...
pawn Код:
case 124://RED
{
if(!response)
{
ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Catalogue", "Stretch\r\nCheetah\r\nAdmiral\r\nFeltzer\r\nHuntley\r\nBanshee\r\nBuffalo\r\nComet\r\nSuper GT\r\nElegy\r\nTurismo\r\nAlpha\r\nEuros\r\nFlash\r\nJester\r\nZR-350\r\nElegant\r\nFortune\r\nSentinel\r\nStafford\r\nSultan\r\nWashington\r\nMerit","Continue","Cancel");
return 1;
}
if(response)
{
ShowPlayerDialog(playerid, 151, DIALOG_STYLE_LIST, "Secondary Vehicle Colour", "{FF0000}||||||\r\n{00FF00}||||||", "Continue", "Back");
}
}