warning 213: tag mismatch - 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: warning 213: tag mismatch (
/showthread.php?tid=279546)
warning 213: tag mismatch -
Jack_Wilson - 28.08.2011
I'm making a roleplay script, and this annoying warning has come up. It's either my brains not working properly, or I don't know how to fix it.
Affected code:
pawn Code:
new Float:vehicleposx, Float:vehicleposy, Float:vehicleposz, Float:vangle;
GetVehiclePos(playerVehicle[playerid], vehicleposx, vehicleposy, vehicleposz);
GetVehicleZAngle(playerid, vangle);
PlayerInfo[playerid][pVehiclePosX] = vehicleposx;//this
PlayerInfo[playerid][pVehiclePosY] = vehicleposy;//this
PlayerInfo[playerid][pVehiclePosZ] = vehicleposz;//this
PlayerInfo[playerid][pVehicleAngle] = vangle;//this
Thanks much appreciated
Re: warning 213: tag mismatch -
=WoR=Varth - 28.08.2011
Show us your enum.
Re: warning 213: tag mismatch -
Jack_Wilson - 28.08.2011
pawn Code:
enum pInfo
{
pVehicleType,
pVehiclePosX,
pVehiclePosY,
pVehiclePosZ,
pVehicleAngle
}
Re: warning 213: tag mismatch -
=WoR=Varth - 28.08.2011
pawn Code:
enum pInfo
{
pVehicleType,
Float:pVehiclePosX,
Float:pVehiclePosY,
Float:pVehiclePosZ,
Float:pVehicleAngle
}
Re: warning 213: tag mismatch -
Jack_Wilson - 28.08.2011
Quote:
Originally Posted by varthshenon
pawn Code:
enum pInfo { pVehicleType, Float:pVehiclePosX, Float:pVehiclePosY, Float:pVehiclePosZ, Float:pVehicleAngle }
|
Ah worked, what do you suggest I do for other setting of variables like this:
pawn Code:
dini_IntSet(file, "VehiclePosX", PlayerInfo[playerid][pVehiclePosX]);
It's giving me the same error.
Re: warning 213: tag mismatch -
Lorenc_ - 28.08.2011
Quote:
Originally Posted by Jack_Wilson
Ah worked, what do you suggest I do for other setting of variables like this:
pawn Code:
dini_IntSet(file, "VehiclePosX", PlayerInfo[playerid][pVehiclePosX]);
It's giving me the same error.
|
It's not a integer, its a float!
dini_FloatSet