22.06.2013, 05:33
Text In Dialog Disappearing (Help)
22.06.2013, 05:37
Hi, mind posting your dialog code so we can help you find out whats going wrong ?
22.06.2013, 05:45
Quote:
Hi, mind posting your dialog code so we can help you find out whats going wrong ?
|
Its on multiples but here is the one in the picture:
Код:
case 20: { format(titlestring, sizeof(titlestring), "{D50000}Drug Dealer"); format(line1, sizeof(line1), "{E6F900}Information:\n{AAC4E5}This job can be used to sell weed and cocaine to any customers you might find.\nIt often comes in handy when you're a higher level at it.\nThe higher the level, the more drugs you can hold.\nThis is an illegal job and you can get busted for doing it."); format(line2, sizeof(line2), "{E6F900}\nSkills:\n{AAC4E5}Level 1: You can hold 10 weed and 5 cocaine.\nLevel 2: You can hold 20 weed and 10 cocaine.\nLevel 3: You can hold 30 weed and 15 cocaine.\nLevel 4: You can hold 40 weed and 20 cocaine.\nLevel 5: You can hold 50 weed and 25 cocaine.\nThe reload time is always 1 minute no matter what level."); format(line3, sizeof(line3), "{E6F900}\nCommands:\n{AAC4E5}/sellweed, /sellcocaine, /sellmeth, /sellheroin, /buydrug\n\n{E6F900}Location of Job:\n{AAC4E5}You already have this job, so you don't need it."); format(mstring, sizeof(mstring), "%s\n%s\n%s", line1, line2, line3); ShowPlayerDialog(playerid, 20, DIALOG_STYLE_MSGBOX, titlestring, mstring, "Done", "Cancel"); }
22.06.2013, 06:19
Are you sure your string length's are long enough, I have tried it on my server and counted the lines and it seems to load fine for me.
http://i.imgur.com/DZBSAyK.png
http://i.imgur.com/DZBSAyK.png
pawn Код:
new line1[281],line2[318],line3[173],mstring[773];
format(line1, sizeof(line1), "{E6F900}Information:\n{AAC4E5}This job can be used to sell weed and cocaine to any customers you might find.\nIt often comes in handy when you're a higher level at it.\nThe higher the level, the more drugs you can hold.\nThis is an illegal job and you can get busted for doing it.");
format(line2, sizeof(line2), "{E6F900}\nSkills:\n{AAC4E5}Level 1: You can hold 10 weed and 5 cocaine.\nLevel 2: You can hold 20 weed and 10 cocaine.\nLevel 3: You can hold 30 weed and 15 cocaine.\nLevel 4: You can hold 40 weed and 20 cocaine.\nLevel 5: You can hold 50 weed and 25 cocaine.\nThe reload time is always 1 minute no matter what level.");
format(line3, sizeof(line3), "{E6F900}\nCommands:\n{AAC4E5}/sellweed, /sellcocaine, /sellmeth, /sellheroin, /buydrug\n\n{E6F900}Location of Job:\n{AAC4E5}You already have this job, so you don't need it.");
format(mstring, sizeof(mstring), "%s\n%s\n%s", line1, line2, line3);
ShowPlayerDialog(playerid, 20, DIALOG_STYLE_MSGBOX, "{D50000}Drug Dealer", mstring, "Done", "Cancel");
22.06.2013, 06:23
Ahh you might be right, I was looking at the wrong dialog boxes haha. I will get back to you if it has worked or not. Thanks!
22.06.2013, 06:29
Haha, Sadly I do the same thing way too often .
22.06.2013, 06:34
22.06.2013, 06:40
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)