error 035: argument type mismatch (argument 3)
#5

use this
Код:
new a[256],b[256];
format(a,sizeof(a),"a");
format(b,sizeof(b),"b");
strcat(string2,"%s %s..etc",a,b... etc);
Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
strcat is only used to join another string (formatted before as it doesn't accept arguments like format function).

You can split the arguments as long as you want (the string would be with \ character but no need to.
pawn Код:
format(string2, sizeof (string2), "Faction - Name:%s | Rank:%s | Division:%s\n",
PFactionName[playerib],
PFactionRank[playerib],
PFactionDivision[playerib]);
yes and this is very very good.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)