SA-MP Forums Archive
[HELP] CreateObject problem - 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: [HELP] CreateObject problem (/showthread.php?tid=503823)



[HELP] CreateObject problem [+REP for answer] - LazyGamer99 - 31.03.2014

I have kind of big problem with my server, this time there is a bug with createobjects thing, it don't load almost any objects which are after LoadObjects(); in LoadObjects i have all my mapping of the server, it was not loading too some time ago, i fixed, but now i started recognizing that almost none of my attachedobjects are showing up when they should to. I would like get answer for this problem of mine, please!


Re: [HELP] CreateObject problem - BroZeus - 31.03.2014

Code please...


Re: [HELP] CreateObject problem - LazyGamer99 - 31.03.2014

Okay, this is some example of the part that don't work also..
Quote:

boatn[0] = CreateDynamicObject(10230,-1306.59997559,1329.96997070,8.30000019,0.00000000, 0.00000000,0.00000000); //object(freighter_sfe) (1)
boatn[1] = CreateDynamicObject(10140,-1291.87060547,1328.91845703,8.45700073,0.00000000, 0.00000000,0.00000000); //object(freig2_intsfe) (1)
AttachObjectToObject(boatn[1], boatn[0], 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1);
//CreateDynamicObject(1583,292.50000000,-138.69999695,1003.40002441,0.00000000,0.00000000,9 0.00000000); //object(tar_gun2) (1)
//CreateDynamicObject(1584,292.70001221,-139.80000305,1003.09997559,0.00000000,0.00000000,2 68.00000000); //object(tar_gun1) (1)
for(new i = 0; i < 1; i++) rotating[i] = -90;
for(new i = 0; i < 20; i++)
{
if(i < 10) NounObject[i] = CreateDynamicObject(3930,560.3654+random(10),840.2 457+random(75),-44.00700073,0.00000000,0.00000000,0.00000000);
else NounObject[i] = CreateDynamicObject(3930,615.3654+random(55),815.2 457+random(65),-43.6009,0.00000000,0.00000000,0.00000000);
}

i have changed in this createobject to dynamic object to test if it will work, so createdynamicobject is not the problem.