23.09.2013, 18:32
Hello!
I lost my mind because of it!
Look:
Object will be created (Area_Objects[areaid][idx][objectID] return objectid in map) but not visible.
When I print these datas they are returns corrects values like;
Area_Objects[areaid][idx][o_Model] = 399
Area_Objects[areaid][idx][o_X] = 512.53
Area_Objects[areaid][idx][o_Y] = 1242.53
Area_Objects[areaid][idx][o_Z] = 15.3335
Area_Objects[areaid][idx][o_rX] = 53
Area_Objects[areaid][idx][o_rY] = 12
Area_Objects[areaid][idx][o_rZ] = 0
But still object is invisible.
BUT!
When i instead of:
i set this;
Then object will appear. What is wrong?
It's sooo weird !
I lost my mind because of it!
Look:
Код:
new mysql_qu[100]; format(mysql_qu,100,"SELECT * FROM `areasobjects` WHERE `aID` = '%d' AND `Ox` = '%d'",areaid, oXx); mysql_query(mysql_qu); mysql_store_result(); new idx=ReturnLastIDXforobjects(areaid); while(mysql_fetch_row(mysql_qu,"|")) { sscanf(mysql_qu,"p<|>e<dddffffff>",Area_Objects[areaid][idx]); Area_Objects[areaid][idx][objectID] = CreateDynamicObject(Area_Objects[areaid][idx][o_Model],Area_Objects[areaid][idx][o_X],Area_Objects[areaid][idx][o_Y],Area_Objects[areaid][idx][o_Z],Area_Objects[areaid][idx][o_rX],Area_Objects[areaid][idx][o_rY],Area_Objects[areaid][idx][o_rZ],0,-1,-1,200.0); }
When I print these datas they are returns corrects values like;
Area_Objects[areaid][idx][o_Model] = 399
Area_Objects[areaid][idx][o_X] = 512.53
Area_Objects[areaid][idx][o_Y] = 1242.53
Area_Objects[areaid][idx][o_Z] = 15.3335
Area_Objects[areaid][idx][o_rX] = 53
Area_Objects[areaid][idx][o_rY] = 12
Area_Objects[areaid][idx][o_rZ] = 0
But still object is invisible.
BUT!
When i instead of:
Код:
CreateDynamicObject(Area_Objects[areaid][idx][o_Model],Area_Objects[areaid][idx][o_X],Area_Objects[areaid][idx][o_Y],Area_Objects[areaid][idx][o_Z],Area_Objects[areaid][idx][o_rX],Area_Objects[areaid][idx][o_rY],Area_Objects[areaid][idx][o_rZ],0,-1,-1,200.0);
Код:
CreateDynamicObject(399,512.53, 1242.53, 15.3335, 53, 12, 0 ,0,-1,-1,200.0);
It's sooo weird !