Tag Mismatch - Help?
#1

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)