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

Quote:
Originally Posted by Disturn
View Post
@MP2: Re-read his 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.

P.S.:

ShowPlayerDialog(playerid, 125, DIALOG_STYLE_MSGBOX

You should use defines, as you're going to end up with hundreds of dialog IDs and not knowing which is which.

pawn Code:
#define DIALOG_DEALERSHIP_CONTRACT 125
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: 1 Guest(s)