error 008: must be a constant expression; assumed zero
#1

Im making a spawn postion but im getting these errors:
PHP код:
(25) : error 008must be a constant expressionassumed zero 
Code:
PHP код:
const hStorage_size1 15;
const 
hStorage_size2 4;
const 
sizeof_hStorage hStorage_size1 hStorage_size2;
enum DInfos
{
    
CarID,
    
Float:DPosSpawn[sizeof_hStorage]
}
new 
PositonDerby[][DInfos] = 
{
    {
554,
        {
            {
3723.0813,-2062.9351,451.2033,89.3281},{3724.2805,-2045.3573,451.2063,90.2029},{3724.6790,-2027.4010,451.2089,89.2600}, //line 25
            
{3697.4927,-1999.9939,451.2069,134.8086} ,{3670.1501,-1974.7266,451.2053,180.1004},{3652.3872,-1974.3087,451.1978,180.0486},
            {
3634.3655,-1972.5986,451.2097,181.4200},{3606.7366,-1999.9852,451.2101,224.1470},{3581.5254,-2027.2485,451.2056,270.0462},
            {
3580.3928,-2045.3174,451.2074,270.0828},{3579.7202,-2062.6936,451.2066,269.5910},{3607.0007,-2090.4060,451.2093,314.9868},
            {
3634.4990,-2115.8936,451.2065,0.4129},{3652.2661,-2117.7759,451.2061,1.6160},{3669.6284,-2116.9807,451.2085,359.3334}
        }
    }
};
#define DPosSpawn][%1][%2] DPosSpawn][((%1)*hStorage_size2)+(%2)]
//Use CreatedDerbyVeh[playerid] = CreateVehicle(PositonDerby[DerbyID][CarID], PositonDerby[DerbyID][DPosSpawn][count][0], PositonDerby[DerbyID][DPosSpawn][count][1], PositonDerby[DerbyID][DPosSpawn][count][2], PositonDerby[DerbyID][DPosSpawn][count][3], random(126), random(126), 1800); 
Reply
#2

Код:
new PositonDerby[][DInfos] =
{
    {554,3723.0813,-2062.9351,451.2033,89.3281},
	{554,3724.2805,-2045.3573,451.2063,90.2029},
	{554,3724.6790,-2027.4010, 451.2089, 89.2600}, 
    {554,3697.4927,-1999.9939,451.2069,134.8086},
	{554,3670.1501,-1974.7266,451.2053,180.1004},
	{554,3652.3872,-1974.3087,451.1978,180.0486},
    {554,3634.3655,-1972.5986,451.2097,181.4200},
	{554,3606.7366,-1999.9852,451.2101,224.1470},
	{554,3581.5254,-2027.2485,451.2056,270.0462},
    {554,3580.3928,-2045.3174,451.2074,270.0828},
	{554,3579.7202,-2062.6936,451.2066,269.5910},
	{554,3607.0007,-2090.4060,451.2093,314.9868},
    {554,3634.4990,-2115.8936,451.2065,0.4129},
	{554,3652.2661,-2117.7759,451.2061,1.6160},
	{554,3669.6284,-2116.9807,451.2085,359.3334}
};
try this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)