21.11.2016, 15:02
The problem is that your use of sscanf is incorrect. Since the lines in the file begin with CreateDynamicObject(...) sscanf fails to parse the line as that part of the string isn't an integer (d) and therefore doesn't conform with the specifiers (dffffff).
I've came across this issue before. The solution is using sscanf's multi-delimiter feature as I've demonstrated in my code below (which works as intended in my map loading script):
I've came across this issue before. The solution is using sscanf's multi-delimiter feature as I've demonstrated in my code below (which works as intended in my map loading script):
pawn Код:
if(sscanf(line, "P<(),>{s[32]}iffffff", modelid, x, y, z, rx, ry, rz))