Hi
I need to extract some informations from a chatlog string.
See the typical sentence http://image.noelshack.com/fichiers/2016/02/1452927126-eeeeee.png
The structure of the string is always the same: NAME + Rank: INTEGER + Tel: INTEGER + Random String
Rank and Telephone works good (they are INT) but the NAME and Random String don't work I don't know why.
Can you help me please ?
I need to extract some informations from a chatlog string.
See the typical sentence http://image.noelshack.com/fichiers/2016/02/1452927126-eeeeee.png
The structure of the string is always the same: NAME + Rank: INTEGER + Tel: INTEGER + Random String
Code:
Alloc Memory for string variables (1 2 3 4 7 10)
samp.GetChatString(99, 1@, 2@, 3@, 4@)
IF
0AD4: 6@ = scan_string 1@ format "%s Rank: %d, Tel: %d %s" 7@ 8@ 9@ 10@
THEN
0AF8: "Name: %s" -1 7@ // Crash
0AF8: "Rank: %d" -1 8@ // Works good
0AF8: "Telephone Number: %d" -1 9@ // Works good
0AF8: "Random string: %s" -1 10@ // Crash
END
Free memory
Rank and Telephone works good (they are INT) but the NAME and Random String don't work I don't know why.
Can you help me please ?