What is going on with this code..?
#1

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

Float:{coords_here};
Reply
#3

try this?
PHP код:
new x,y,z,rotation;
                  
SetPVarInt(playerid"insumo"1);
                  new 
monster;
                  switch(
sumoplayers)
                  {
                      case 
2:{ posicioness = {1532.2136, -1359.2765329.4535269.4806};}
                      case 
3:{ posicioness = {1557.6306, -1358.4436329.460991.6739};}
                      case 
4:{ posicioness = {1557.7335, -1349.3683329.4609110.0157};}
                      case 
5:{ posicioness = {1549.9457, -1343.0509329.4599161.4028};}
                      case 
6:{ posicioness = {1538.5728, -1343.0917329.4665202.7632};}
                  }
                    
monster CreateVehicle(444xyzrotation, -1, -1, -1);
                    
PutPlayerInVehicle(playeridmonster0); 
Reply
#4

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)