warning 213: tag mismatch
#1

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

Show us your enum.
Reply
#3

pawn Code:
enum pInfo
{
    pVehicleType,
    pVehiclePosX,
    pVehiclePosY,
    pVehiclePosZ,
    pVehicleAngle
}
Reply
#4

pawn Code:
enum pInfo
{
    pVehicleType,
    Float:pVehiclePosX,
    Float:pVehiclePosY,
    Float:pVehiclePosZ,
    Float:pVehicleAngle
}
Reply
#5

Quote:
Originally Posted by varthshenon
View Post
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.
Reply
#6

Quote:
Originally Posted by Jack_Wilson
View Post
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)