31.07.2012, 05:04
If you want sscanf to unformat just one char do
In [] , you enter the size of string, since you are passing just one char (data[0] is first char of data string)
so, you must do s[1]
If your string is , for example
pawn Code:
sscanf(line, "p<|>s[1]s[1]dddds[1]s[1]s[1]s[1]s[1]s[1]dddddffffs[1]s[1]dddddddd", data[0], data[1]ETC....);
so, you must do s[1]
If your string is , for example
pawn Code:
new string[100];
//U must do like
sscanf(line,"s[100]",string)//for full string
sscanf(lline,"s[1]",string[0])//for just one character