17.12.2015, 21:31
Hey guys,
i load some spawns with sscanf.
Loading works fine.
I printed and all coordinates are there.
Now i want use this coordinates as random spawns.
But how?
I dont know how to do this now.
Hope for help.
Load code:
i load some spawns with sscanf.
Loading works fine.
I printed and all coordinates are there.
Now i want use this coordinates as random spawns.
But how?
I dont know how to do this now.
Hope for help.
Load code:
Код:
else if(!sscanf(loadstr1, "p<\">'spawnpoint''vehicle='d'posX='f'posY='f'posZ='f'rotX='f'rotY='f'rotZ='f",mapValues1[pMmodelids1], mapValues1[pMXs1], mapValues1[pMYs1], mapValues1[pMZs1], mapValues1[pMRXs1], mapValues1[pMRYs1], mapValues1[pMRZs1])){ CreateRaceSpawn1(mapValues1[pMmodelids1], mapValues1[pMXs1], mapValues1[pMYs1], mapValues1[pMZs1], mapValues1[pMRZs1]); printf("%f %f %f", mapValues1[pMXs1], mapValues1[pMYs1], mapValues1[pMZs1]); ++count;