What is going on with this code..? -
xXmAn40100Xx - 22.05.2016
Hello SA-MP community! I have a problem and I don't know how to solve it..
Our dear Warning:213 (Tag mismatch) is tormenting my code and I don't know how to solve it because it already has a tag
Код:
new Float:posicioness[4];
SetPVarInt(playerid, "insumo", 1);
new monster;
switch(sumoplayers)
{
case 2:{ posicioness = {1532.2136, -1359.2765, 329.4535, 269.4806};}
case 3:{ posicioness = {1557.6306, -1358.4436, 329.4609, 91.6739};}
case 4:{ posicioness = {1557.7335, -1349.3683, 329.4609, 110.0157};}
case 5:{ posicioness = {1549.9457, -1343.0509, 329.4599, 161.4028};}
case 6:{ posicioness = {1538.5728, -1343.0917, 329.4665, 202.7632};}
}
monster = CreateVehicle(444, posicioness[0], posicioness[1], posicioness[2], posicioness[3], -1, -1, -1);
PutPlayerInVehicle(playerid, monster, 0);
As you can see, it already has the tag Float: but I don't know what causes this.
Thanks in advance
Re: What is going on with this code..? -
Jefff - 22.05.2016
Float:{coords_here};
Re: What is going on with this code..? -
xTURBOx - 23.05.2016
try this?
PHP код:
new x,y,z,rotation;
SetPVarInt(playerid, "insumo", 1);
new monster;
switch(sumoplayers)
{
case 2:{ posicioness = {1532.2136, -1359.2765, 329.4535, 269.4806};}
case 3:{ posicioness = {1557.6306, -1358.4436, 329.4609, 91.6739};}
case 4:{ posicioness = {1557.7335, -1349.3683, 329.4609, 110.0157};}
case 5:{ posicioness = {1549.9457, -1343.0509, 329.4599, 161.4028};}
case 6:{ posicioness = {1538.5728, -1343.0917, 329.4665, 202.7632};}
}
monster = CreateVehicle(444, x, y, z, rotation, -1, -1, -1);
PutPlayerInVehicle(playerid, monster, 0);
Re: What is going on with this code..? -
Stinged - 23.05.2016
Quote:
Originally Posted by xTURBOx
try this?
|
This doesn't fix the errors/warnings, what this does is add a new error.
Jefff already gave the solution.
Re: What is going on with this code..? -
AdrianG - 23.05.2016
use at each case posicioness[0]=your_x_cord (eg. 1532.2136); posicioness[1]=y; posicioness[2]=z; posicioness[3]=a; and it should work..