24.10.2015, 14:51
my test
results
PHP код:
new stringBuffer[256], LOADED_OBJECT_COUNT = 0,
modelID, Float:ox, Float:oy, Float:oz, Float:orx, Float:ory, Float:orz, worldID, interiorID, playerid, Float:streamdistance;
stringBuffer = "10379, -2699.87451, 374.68600, 12.71875, 356.85840, 0.00000, 3.14159";
if(sscanf(stringBuffer, "p<,>dffffffD(-1)D(-1)D(-1)F(300.0)", modelID, ox, oy, oz, orx, ory, orz, worldID, interiorID, playerid, streamdistance) != -1){
CreateDynamicObject(modelID, ox, oy, oz, orx, ory, orz, worldID, interiorID, playerid, streamdistance);
printf("(Create) modelID: %d | ox: %f | oy: %f | oz: %f", modelID, ox, oy, oz);
LOADED_OBJECT_COUNT++;
}
PHP код:
[16:49:28] (Create) modelID: 10379 | ox: -2699.874511 | oy: 374.686004 | oz: 12.718750