03.09.2015, 11:34
Do you realize that the "rank" var is a string and not an integer? And you can't use %d or %i (int specifier) for it. The format output gets bugged with some weird letters. Change rank[28] to rank
PS: I recommend you to use sscanf and zcmd cause this method is outdated already.
PS: I recommend you to use sscanf and zcmd cause this method is outdated already.