[Help] +1 rep sscanf warning: No default value found.
#7

If you want sscanf to unformat just one char do
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....);
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:
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
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)