SA-MP Forums Archive
Tag Mismatch - Help? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Tag Mismatch - Help? (/showthread.php?tid=274739)



Tag Mismatch - Help? - Eric - 07.08.2011

Hey guys.
I'm a relatively new scripter. I ran into a few warnings recently, while I was scripting.

Can somebody please help me out? It'd be much appreciated.

Код:
CMD:getcar(playerid, params[]) {
    if(playerVariables[playerid][pAdminLevel] >= 3) {
		new	vehicleID,
		float: cCoords[3];
            
		if(sscanf(params, "u", vehicleID)) {
			return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/getcar [vehicleid]");
		}
		GetPlayerPos(playerid, cCoords[0], cCoords[1], cCoords[2]);
		SetVehiclePos(vehicleID, cCoords[0], cCoords[1]+5, cCoords[2]);
		LinkVehicleToInterior(vehicleID, GetPlayerInterior(playerid));
		SetVehicleVirtualWorld(vehicleID, GetPlayerVirtualWorld(playerid));
		return 1;
	}
	return 1;
}
The warnings:

Quote:

C:\Users\Administrator\Desktop\Windows\Windows\gam emodes\vx-rp.pwn(14916) : warning 213: tag mismatch
C:\Users\Administrator\Desktop\Windows\Windows\gam emodes\vx-rp.pwn(14916) : warning 213: tag mismatch
C:\Users\Administrator\Desktop\Windows\Windows\gam emodes\vx-rp.pwn(14916) : warning 213: tag mismatch
C:\Users\Administrator\Desktop\Windows\Windows\gam emodes\vx-rp.pwn(14917) : warning 213: tag mismatch
C:\Users\Administrator\Desktop\Windows\Windows\gam emodes\vx-rp.pwn(14917) : warning 213: tag mismatch
C:\Users\Administrator\Desktop\Windows\Windows\gam emodes\vx-rp.pwn(14917) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


6 Warnings.

Thanks!


Re: Tag Mismatch - Help? - dowster - 07.08.2011

What line number is the top line?
nvm i think its the space between float: cCoords[3] it should be Float:cCoords[3]


Re: Tag Mismatch - Help? - Calgon - 07.08.2011

Capitalize the 'F' for Float, also replace the "u" in sscanf to "d" - u is used for user IDs/names and 'd' or 'i' is used for digits/integers.

Also, it's nice to see you're using my script .