[HELP] two lines in one line
#1

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
Reply
#2

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

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
Reply
#4

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?
Reply
#5

lallala \
blalallaa
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)