Can't see objects! - 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: Can't see objects! (
/showthread.php?tid=465719)
Can't see objects! -
xqz - 23.09.2013
Hello!
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);
}
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:
Код:
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);
i set this;
Код:
CreateDynamicObject(399,512.53, 1242.53, 15.3335, 53, 12, 0 ,0,-1,-1,200.0);
Then object will appear. What is wrong?
It's sooo weird !