Dialog string
#4

[MG]Dimi, it couldn't get any worse than that.

What you need is quite simple.
pawn Код:
// I'll just assume your variable names are something like this:
new dialogLine[128];
dialogLine = "Join messages - ";
strcat(dialogLine, (JoinMSGs == true) ? ("on\n") : ("off\n"));

if(GlobalChat == true)
    strcat(dialogLine, "Global chat - on\n");
else
    strcat(dialogLine, "Global chat - off\n");

// Show the dialog...
And so on...

If the first lines seem confusing to you, it can also be perfectly done like this:
pawn Код:
// I'll just assume your variable names are something like this:
new dialogLine[128];
if(JoinMSGs == true)
    strcat(dialogLine, "Join messages - on\n");
else
    strcat(dialogLine, "Join messages - off\n");

if(GlobalChat == true)
    strcat(dialogLine, "Global chat - on\n");
else
    strcat(dialogLine, "Global chat - off\n");

// Show the dialog
Reply


Messages In This Thread
Dialog string - by Richie - 21.11.2011, 15:14
Re: Dialog string - by [MG]Dimi - 21.11.2011, 15:23
Re: Dialog string - by Richie - 21.11.2011, 15:30
Re: Dialog string - by AndreT - 21.11.2011, 15:32
Re: Dialog string - by [MG]Dimi - 21.11.2011, 15:35
Re: Dialog string - by Richie - 21.11.2011, 16:01

Forum Jump:


Users browsing this thread: 1 Guest(s)