21.11.2011, 15:32
(
Последний раз редактировалось AndreT; 21.11.2011 в 15:33.
Причина: Forgot newlines, sorry! :D
)
[MG]Dimi, it couldn't get any worse than that.
What you need is quite simple.
And so on...
If the first lines seem confusing to you, it can also be perfectly done like this:
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...
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