SA-MP Forums Archive
Tag Missmatch - 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: Tag Missmatch (/showthread.php?tid=660573)



Tag Missmatch - Longover - 06.11.2018

HI!

Tag missmatch on the lines:

Code:
LastBack[0] = Px;
			LastBack[1] = Py;
			LastBack[2] = Pz;
Full code:

Code:
COMMAND:backup(playerid, params[])
{
	if(!isLEO(playerid))
	{
		Server(playerid, "Nu faci parte din politie.");
		return 1;
	}
	new msg[248], Float:Px, Float:Py, Float:Pz;
	if(inTied(playerid))
	{
		Server(playerid, "Nu poti folosi aceasta comanda pentru ca esti legat.");
		return 1;
	}
	foreach(new i : Player)
	{
		if(isLEO(i))
		{
			GetPlayerPos(playerid, Px, Py, Pz);
			LastBackup = playerid;
			LastBack[0] = Px;
			LastBack[1] = Py;
			LastBack[2] = Pz;
			format(msg, 248, "Politistul %s are nevoie de ajutor! Catre toate unitatile,pentru a raspune,foloseste /respond!", GetName(playerid));
			SendClientMessage(i, COLOR_PURPLE, msg);
		}
	}
	return 1;
}



Re: Tag Missmatch - StRaphael - 06.11.2018

Cum ese definita variabila LastBackup?


Re: Tag Missmatch - Longover - 06.11.2018

Quote:
Originally Posted by StRaphael
View Post
Cum ese definita variabila LastBackup?
Code:
new LastBackup,
	LastBack[3];



Re: Tag Missmatch - Longover - 06.11.2018

Quote:
Originally Posted by Longover
View Post
Code:
new LastBackup,
	LastBack[3];
Cineva?
Someone?


Re: Tag Missmatch - Eoussama - 06.11.2018

PHP Code:
new Float:LastBack[3]; 



Re: Tag Missmatch - Longover - 06.11.2018

Quote:
Originally Posted by Eoussama
View Post
PHP Code:
new Float:LastBack[3]; 
Thanks!