sscanf - d identifier gets the wrong number
#4

my test
PHP код:
    new stringBuffer[256], LOADED_OBJECT_COUNT 0,
    
modelIDFloat:oxFloat:oyFloat:ozFloat:orxFloat:oryFloat:orzworldIDinteriorIDplayeridFloat: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)"modelIDoxoyozorxoryorzworldIDinteriorIDplayeridstreamdistance) != -1){
        
CreateDynamicObject(modelIDoxoyozorxoryorzworldIDinteriorIDplayeridstreamdistance);
        
printf("(Create) modelID: %d | ox: %f | oy: %f | oz: %f"modelIDoxoyoz);
        
LOADED_OBJECT_COUNT++;
    } 
results
PHP код:
[16:49:28] (CreatemodelID10379 ox: -2699.874511 oy374.686004 oz12.718750 
Reply


Messages In This Thread
sscanf - d identifier gets the wrong number - by BKarner - 23.10.2015, 22:56
Re : sscanf - d identifier gets the wrong number - by Golimad - 23.10.2015, 23:17
Re: Re : sscanf - d identifier gets the wrong number - by BKarner - 23.10.2015, 23:19
Re: sscanf - d identifier gets the wrong number - by AbyssMorgan - 24.10.2015, 14:51
Re: sscanf - d identifier gets the wrong number - by BKarner - 24.10.2015, 19:56

Forum Jump:


Users browsing this thread: 2 Guest(s)