SA-MP Forums Archive
Object dont load properly - 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: Object dont load properly (/showthread.php?tid=549755)



Object dont load properly - ignas1125 - 08.12.2014

Hello, so I'm making server and I have biggest problem with object loading , I don't know where is problem!

how my map looks:
Код:
new tmpobjid;
tmpobjid = CreateDynamicObject(19445,-2110.411,-2285.859,27.942,0.000,0.000,51.400);
SetDynamicObjectMaterial(tmpobjid, 0, 9514, "711_sfw", "mono1_sfe", 0);
tmpobjid = CreateDynamicObject(19445,-2098.355,-2295.494,27.942,0.000,0.000,51.400);
SetDynamicObjectMaterial(tmpobjid, 0, 9514, "711_sfw", "mono1_sfe", 0);
tmpobjid = CreateDynamicObject(19377,-2104.497,-2297.812,39.787,0.000,90.000,141.509);
SetDynamicObjectMaterial(tmpobjid, 0, 16640, "a51", "ws_stationfloor", 0);

tmpobjid = CreateDynamicObject(19381,-2107.579,-2307.020,29.574,0.000,90.000,51.400);
screen : http://puu.sh/dml7i/1084dae4bd.jpg


Re: Object dont load properly - kloning1 - 08.12.2014

create new func

pawn Код:
stock hoemoe()
{
new tmpobjid;
tmpobjid = CreateDynamicObject(19445,-2110.411,-2285.859,27.942,0.000,0.000,51.400);
SetDynamicObjectMaterial(tmpobjid, 0, 9514, "711_sfw", "mono1_sfe", 0);
tmpobjid = CreateDynamicObject(19445,-2098.355,-2295.494,27.942,0.000,0.000,51.400);
SetDynamicObjectMaterial(tmpobjid, 0, 9514, "711_sfw", "mono1_sfe", 0);
tmpobjid = CreateDynamicObject(19377,-2104.497,-2297.812,39.787,0.000,90.000,141.509);
SetDynamicObjectMaterial(tmpobjid, 0, 16640, "a51", "ws_stationfloor", 0);
}

OnGameModeInit()
{
   hoemoe();
return 1;
}



Re: Object dont load properly - ignas1125 - 08.12.2014

i use
stock LoadObject()
{
///objects
}

but nope, stil no loading


Re: Object dont load properly - dominik523 - 08.12.2014

Quote:
Originally Posted by kloning1
Посмотреть сообщение
create new func

pawn Код:
stock hoemoe()
{
new tmpobjid;
tmpobjid = CreateDynamicObject(19445,-2110.411,-2285.859,27.942,0.000,0.000,51.400);
SetDynamicObjectMaterial(tmpobjid, 0, 9514, "711_sfw", "mono1_sfe", 0);
tmpobjid = CreateDynamicObject(19445,-2098.355,-2295.494,27.942,0.000,0.000,51.400);
SetDynamicObjectMaterial(tmpobjid, 0, 9514, "711_sfw", "mono1_sfe", 0);
tmpobjid = CreateDynamicObject(19377,-2104.497,-2297.812,39.787,0.000,90.000,141.509);
SetDynamicObjectMaterial(tmpobjid, 0, 16640, "a51", "ws_stationfloor", 0);
}

OnGameModeInit()
{
   hoemoe();
return 1;
}
You do realize that functions are only there to replace the same code on different places, which means you put a function under OnGameModeInit, and it's the same thing if you would put that code in the callback without the function.

OT: I think material is your problem. Try with different materials.


Re: Object dont load properly - ignas1125 - 08.12.2014

Quote:
Originally Posted by dominik523
Посмотреть сообщение
You do realize that functions are only there to replace the same code on different places, which means you put a function under OnGameModeInit, and it's the same thing if you would put that code in the callback without the function.

OT: I think material is your problem. Try with different materials.
i tryed deleting all materials but nope still same


Re: Object dont load properly - ignas1125 - 08.12.2014

bumping because this is really really big problem to me!