SA-MP Forums Archive
What is going on with this code..? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: What is going on with this code..? (/showthread.php?tid=607714)



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.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); 



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