Posts: 71
Threads: 16
Joined: Apr 2015
Try
Код:
format(DoubleString,sizeof(DoubleString),"Skill Name\tDamage Precent\tCurrent Level\tNext Level\n");
format(DoubleString,sizeof(DoubleString),"%s\ttest\ttest2\ttest3",,GetName(playerid));
Posts: 1,222
Threads: 23
Joined: Jul 2009
Reputation:
0
It's not really a surprise your code doesn't show the player name. You first try to insert the name using format, after which you concatenate a string in which you need the player name. Thus, during the format step there's no place for the name to be inserted.
Posts: 1,767
Threads: 124
Joined: Mar 2010
Quote:
Originally Posted by Lirbo
so i can't insert the name or?
|
GetName() function is called in your "format" not in your "strcat". How do you expect player's name to be printed out in that case?
Posts: 1,222
Threads: 23
Joined: Jul 2009
Reputation:
0
Just change the order. First do the concatenation, then the formatting.