SA-MP Forums Archive
sscanf help needed - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: sscanf help needed (/showthread.php?tid=449883)



sscanf help needed - Pizzy - 10.07.2013

Well, I'm trying to add a map system, and I have ran into one little problem.


This is the current line (Thanks to mick8:
Код:
if (!sscanf(string, "p<\">'object''model='d'interior='d'dimension='d'posX='f'posY='f'posZ='f'rotX='f'rotY='f'rotZ='f", modelid, interior, world, x, y, z, rx, ry, rz))
This works, but this reads from a MTA .map file.
EXAMPLE, It READS this:
Код:
<object id="object (cxref_woodjetty) (3)" doublesided="false" model="3406" interior="0" dimension="0" posX="1762.3000488281" posY="-14.10000038147" posZ="-1.3999999761581" rotX="0" rotY="0" rotZ="0"></object>
It works, but now I want to convert that into SA-MP.


How am I able to make it read from the SA-MP CreateObject?


Any help appreciated - thanks.