Warnings problem
#1

hy guys i have this warning:
Код:
warning 213: tag mismatch
Код:
new Car0 = CreateVehicle(spawns[rand][spawnPos][0],spawns[rand][spawnPos][1],spawns[rand][spawnPos][2],spawns[rand][spawnPos][3],spawns[rand][spawnPos][4],0,0,0);
Код:
new spawns[][e_spawns] =
{
        {{498,3742.2998000,-57.0000000,1.8000000,0.0000000},0},
        {{486,3757.0000000,13.1000000,14.6000000,89.0630000},0},
        {{573,3783.1992200,-86.1992200,24.6000000,270.9890000},0},
        {{480,3794.5000000,-40.5996100,1.4000000,0.0000000},0},
        {{555,3794.3999000,-24.2000000,1.3000000,182.7560000},0},
        {{496,3777.0000000,-32.2000000,1.3000000,90.5880000},0},
        {{535,3716.6992200,-62.5996100,14.4000000,358.6650000},0},
        {{470,3706.1999500,-59.6000000,13.9000000,92.1670000},0},
        {{489,3651.8999000,10.1000000,36.6000000,267.8330000},0},
        {{424,3649.5000000,-45.6000000,13.6000000,269.4130000},0},
        {{504,3714.5000000,-32.7000000,1.5000000,0.0000000},0},
        {{411,3713.8999000,-15.2000000,1.4000000,0.0000000},0}
};
Код:
enum e_spawns
{
    Float:spawnPos[5],
    spawnUsed
}
how to fix it?
Reply
#2

Add the tag 'Float:' where you include float values!
Reply
#3

Quote:
Originally Posted by Rajat_Pawar
Посмотреть сообщение
Add the tag 'Float:' where you include float values!
hmm i added float for vehicleid too, so how i can i add to vehicleid is not float

Код:
{{498,3742.2998000,-57.0000000,1.8000000,0.0000000},0},
Код:
CreateVehicle(spawns[rand][spawnPos][0]
Код:
Float:spawnPos[5],
see?
Reply
#4

Just make it a separate entity in the enumeration instead of cramming it unnecessarily into "spawnPos".
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)