[HELP] Show list in DialogStyleList with 'if' possible strcat
#2

Its not ok because you can see only last item, use strcat, char array and packed strings

pawn Код:
static itemstr[128 char];

if(PlayerHaveEagle == 1) itemstr = !"Item 1: Eagle (Have)\n";
else itemstr = !"Item 1: Eagle (Don't Have)\n";

if(PlayerHaveKnife == 1) strcat(itemstr,!"Item 1: Knife (Have)\n");
else strcat(itemstr,!"Item 1: Knife (Don't Have)\n");

if(PlayerHaveShotgun == 1) strcat(itemstr,!"Item 1: ShotGun (Have)");
else strcat(itemstr,!"Item 1: ShotGun (Don't Have)");
show itemstr
Reply


Messages In This Thread
[HELP] Show list in DialogStyleList with 'if' possible strcat - by iryston - 13.08.2014, 22:51
Re: [HELP] Show list in DialogStyleList with 'if' possible strcat - by Jefff - 13.08.2014, 23:08
Re: [HELP] Show list in DialogStyleList with 'if' possible strcat - by iryston - 14.08.2014, 01:06
Re: [HELP] Show list in DialogStyleList with 'if' possible strcat - by Jefff - 14.08.2014, 01:16
Re: [HELP] Show list in DialogStyleList with 'if' possible strcat - by iryston - 14.08.2014, 01:48

Forum Jump:


Users browsing this thread: 1 Guest(s)