Object dont load properly
#1

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
Reply
#2

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;
}
Reply
#3

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

but nope, stil no loading
Reply
#4

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.
Reply
#5

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
Reply
#6

bumping because this is really really big problem to me!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)