SA-MP Forums Archive
[HELP] two lines in one line - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] two lines in one line (/showthread.php?tid=526454)



[HELP] two lines in one line - Luca12 - 17.07.2014

Hello So I have in offban check command if player has for example abanned variable then it says

player has ban variable that is line 1

and second check is offbanned variable and if player has a offban variable

then on another line it says player has offbaned

know is my question how can make this from two lines in just one line if you know what I mean so I want when I offcheck someone player and if he has one of those variable then it send me just one line not two lines for each type of variable. I hope so that I explain good what I want. Thanks


Re: [HELP] two lines in one line - SanAndreasMP - 17.07.2014

We're not clear with what you said. Can you explain it real good?


Re: [HELP] two lines in one line - Luca12 - 17.07.2014

I can't I think that I explain enough I hope so. So there's two variables offbaned and abanned then I here want to say in just one line if player has one of this variables to 1 then in line it says player has variable 1 if he not then it says player not have variable 1 or 2 if that variable only is 0


Re: [HELP] two lines in one line - Scottas - 17.07.2014

pawn Код:
new msg[128];
if(abaned[playerid])
    strcat(msg, "player has ban variable");
else
    strcat(msg, "player doesn't have ban variable");
if(offbaned[playerid])
    strcat(msg, " player is ofbaned");
else
    strcat(msg, " player is not offbaned");
SendClientMessage(playerid, -1, msg);
is that what you're looking for?


Re: [HELP] two lines in one line - Ihateyou - 17.07.2014

lallala \
blalallaa