SA-MP Forums Archive
Dialog help... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialog help... (/showthread.php?tid=435430)



Dialog help... - MichaelWharton101 - 06.05.2013

So umm... What I post below will tell it all....

Код:
case 16: // VIP Dialog
        {
        ShowPlayerDialog(playerid, 16, DIALOG_STYLE_LIST, "VIP Specials and Package features", "Vehicle Commands\nStatic Changes\nCustom Spawnpoints\nRestricted Clothes\nAdvertisement Specials\nTAB Color Activation\nVIP Clothing Store\nVIP Weapon Store (VIP-Points)\nVIP Drug Store (VIP-Points)\nVIP Community Specials\nVIP Weapon Shop\nVIP Special Weapon Store (VIP-Points)\nVIP Vehicle Changer\nVIP Business Refiller\nSpecial VIP Options\nTemporary VIP Packages\nVIP Special Weapon Shop\nMonthly VIP Packages\nPrivate Music Folder\nProperty / Level Switcher", "Choose", "Cancel");
        }
error...
Код:
C:\Users\Michael\Desktop\everything\other\GTA\server\A-RP\gamemodes\A-RP.pwn(30005) : error 075: input line too long (after substitutions)



Re: Dialog help... - Jf - 06.05.2013

Becose that line is too long.

Try this:

Top of the script:

pawn Код:
#define VipDialogLenght 500
static VipDialog[VipDialogLenght];
OnGameModeInit:
pawn Код:
strcat(VipDialog, "Vehicle Commands\nStatic Changes\nCustom Spawnpoints\nRestricted Clothes\nAdvertisement Specials\nTAB Color Activation\nVIP Clothing Store\nVIP Weapon Store (VIP-Points)\n", VipDialogLenght);
strcat(VipDialog, "VIP Drug Store (VIP-Points)\nVIP Community Specials\nVIP Weapon Shop\nVIP Special Weapon Store (VIP-Points)\nVIP Vehicle Changer\nVIP Business Refiller\nSpecial VIP Options\nTemporary VIP Packages\n", VipDialogLenght);
strcat(VipDialog, "VIP Special Weapon Shop\nMonthly VIP Packages\nPrivate Music Folder\nProperty / Level Switcher", VipDialogLenght);
And in your Dialog line, change to this:
pawn Код:
ShowPlayerDialog(playerid, 16, DIALOG_STYLE_LIST, "VIP Specials and Package features", VipDialog, "Choose", "Cancel");



Re: Dialog help... - MichaelWharton101 - 06.05.2013

Worked like a charm, thanks bro