'strcat' and it's use with list type of dialog.
#7

Quote:
Originally Posted by MP2
View Post
I did. I didn't just post random code did I?

Your original code was

pawn Code:
ShowPlayerDialog(playerid, 125, DIALOG_STYLE_MSGBOX, "Purchase Confirmation", "By Signing this contract you are agreeing to purchasing this vehicle you you will be charged accordingly,\n If you decline this purchase you will not be charged and the vehicle will remain at the dealership for another buyer.\n\n\n{FF0000} After vehicle purchase, the vehicle is then under your care and is not covered by any dealership insurance policies.\n\n We offer every vehicle sold a temporary license plate that is only valid for one day((One payday)).", "Sign", "Decline");
Just split it up (you'll have to guess how short to make them):

pawn Code:
new szDialog[464] = "By Signing this contract you are agreeing to purchasing this vehicle you you will be charged accordingly,");
strcat(szDialog, "\n If you decline this purchase you will not be charged and the vehicle will remain at the dealership for another buyer.");
strcat(szDialog, "\n\n\n{FF0000} After vehicle purchase, the vehicle is then under your care and is not covered by any dealership insurance policies.");
strcat(szDialog, "\n\n We offer every vehicle sold a temporary license plate that is only valid for one day((One payday)).");

ShowPlayerDialog(playerid, 125, DIALOG_STYLE_MSGBOX, "Purchase Confirmation", szDialog, "Sign", "Decline");
Useful site: http://www.javascriptkit.com/script/...harcount.shtml

NOTE: Not tested, it's a lot of text to work with so something may be out of place. Let me know.
Yea no worries mate, cheers for the feed back and MP2 wasn't having a go at you nor was he saying you didn't read it, he was just saying re-read it as you had something wrong.

Cheers too both of yas. will let you know how it went i have a fair bit to do before i can test it yet :P got about 4 different systems i am working on :P.
Reply


Messages In This Thread
'strcat' and it's use with list type of dialog. - by Deal-or-die - 01.05.2012, 12:42
Re: 'strcat' and it's use with list type of dialog. - by MP2 - 01.05.2012, 12:46
Re: 'strcat' and it's use with list type of dialog. - by Disturn - 01.05.2012, 12:50
Re: 'strcat' and it's use with list type of dialog. - by Deal-or-die - 01.05.2012, 12:51
Re: 'strcat' and it's use with list type of dialog. - by Deal-or-die - 01.05.2012, 12:54
Re: 'strcat' and it's use with list type of dialog. - by MP2 - 01.05.2012, 12:56
Re: 'strcat' and it's use with list type of dialog. - by Deal-or-die - 01.05.2012, 12:59

Forum Jump:


Users browsing this thread: 3 Guest(s)