Weird Issue regarding objects -
Abreezy - 28.12.2012
If I use this code for spawning:
Код:
vehid[playerid] = CreateVehicle(SumoModels[random(sizeof(SumoModels))], SumoSpawns[rand][0], SumoSpawns[rand][1], SumoSpawns[rand][2], SumoSpawns[rand][3], -1, -1, 10000);
The objects don't show up at all.
But if I use this code for spawning:
Код:
vehid[playerid] = CreateVehicle(402, -2158.5586, -1689.3036, 461.1118, 0.0, -1, -1, 0);
Everything loads perfectly.
For the first code, I still spawn perfectly, with a vehicle, I just can't see the objects meanwhile with defined vehicle and positions, second code, I see objects perfectly.. How could I fix the first code to work properly?
Re: Weird Issue regarding objects -
Faisal_khan - 28.12.2012
Check your array, the problem seems to lie there.
Re: Weird Issue regarding objects -
Grim_ - 28.12.2012
You are not creating any objects with that code..
Re: Weird Issue regarding objects -
Abreezy - 28.12.2012
Quote:
Originally Posted by Grim_
You are not creating any objects with that code..
|
I know this, I'm saying for some reason the way I spawn players effects whether or not you can see the objects.
If I use the array spawn method, you can't see the objects, their invisible, meanwhile if I use the coords instead, You can see the objects perfectly.
Here's what my array looks like:
Код:
new Float:SumoSpawns[20][4] =
{
{-2158.5586,-1689.3036,461.1118,330.2129},
{-2175.0947,-1668.5356,461.1052,282.3799},
{-2176.7480,-1659.9485,461.1053,257.6286},
{-2176.6638,-1649.2728,461.1056,256.2162},
{-2173.5430,-1639.5988,461.1055,238.6248},
{-2165.3447,-1629.7633,461.1047,211.3053},
{-2131.7734,-1691.2933,461.1095,27.3021},
{-2122.4583,-1687.9451,461.1081,35.3067},
{-2114.4231,-1680.8098,461.1089,57.0639},
{-2106.5718,-1667.2668,461.1057,86.7851},
{-2105.4590,-1652.3369,461.1136,109.2355},
{-2109.2246,-1640.4138,461.1062,163.3057},
{-2118.1948,-1628.7410,461.1064,147.2754},
{-2165.2354,-1609.5205,461.1016,306.3771},
{-2171.9255,-1602.1940,461.0981,290.7552},
{-2179.0264,-1581.7711,461.0969,256.5332},
{-2174.7881,-1562.1007,461.0949,233.5873},
{-2166.0918,-1551.8204,461.0956,208.6403},
{-2148.3054,-1544.1234,461.0948,174.3493},
{-2114.8635,-1558.0446,461.0963,122.3357}
};
Not sure if you guys see any issues, if so, please say so.
Re: Weird Issue regarding objects -
Abreezy - 29.12.2012
Bump, Could really use some help with this.