30.06.2013, 16:14
Yeah, I understand that but what I don't understand is how to format the string depending on how many commands are available?
Right now I end up with having the last line in my /commands like this:
because the format looks like:
So basically, I just need to know how to ADD info to a string depending on how many commands there is on the last line. E.g.
EDIT: I searched wiki and found "Strins" would that work?
Right now I end up with having the last line in my /commands like this:
pawn Код:
/veh / / / /
pawn Код:
/%s /%s /%s /%s /%s
pawn Код:
if(buffer[0]) { AddToString(str,"/%s",buffer[0]) } else {return 1;}
if(buffer[1]) { AddToString(str,"/%s",buffer[1]) } else {return 1;}
if(buffer[2]) { AddToString(str,"/%s",buffer[2]) } else {return 1;}
if(buffer[3]) { AddToString(str,"/%s",buffer[3]) } else {return 1;}
if(buffer[4]) { AddToString(str,"/%s",buffer[4]) } else {return 1;}