Warning 213: Tag Mismatch.
#1

Could someone explain why I am getting a tag mismatch? It's strange, Here:

Quote:

GetPlayerArmour(playerid, armour);
MySQL_SetValue(PlayerSQLID[playerid], "Armour", armour, "Accounts");

And Here. if someone could correct the codes and explain why they don't work that way I can learn.

Quote:

CMDetfactionent(playerid, params[])
{
if(LoggedIn[playerid] == 0) return SendClientMessage(playerid, COLOUR_GREY, "You must be logged in to use this command.");
new ID;
if(AdminLevel[playerid] < 4) return SendClientMessage(playerid, COLOUR_GREY, "You are not authorized to use this command.");
if(ID < 1 || ID > MAX_FACTIONS) return SendClientMessage(playerid, COLOUR_GREY, "Invalid faction id.");
if(sscanf(params, "d", ID)) return SendClientMessage(playerid, COLOUR_GREY, "Usage: /setfactionent [factionid]");
new factionid;
factionid = MySQL_GetValue(FactionSQLID[id], "FactionID", "factions");

new Float: x, Float: y, Float: z;
GetPlayerPos(playerid, x, y, z);

FactionEntX[factionid] = x;
FactionEntY[factionid] = y;
FactionEntZ[factionid] = z;

MySQL_SetValue(FactionSQLID[factionid], "FactionEntX", x, "factions");
MySQL_SetValue(FactionSQLID[factionid], "FactionEntY", y, "factions");
MySQL_SetValue(FactionSQLID[factionid], "FactionEntZ", z, "factions");
new string[128];
format(string, sizeof(string), "You have set %s's entrance", FactionName[factionid]);
SendClientMessage(playerid, COLOUR_LIGHTBLUE, string);
return 1;
}

I don't understand why I am getting a tag mismatch.

Quote:

C:\Users\berni\Desktop\Zombie Mode\gamemodes\rp.pwn(236) : warning 213: tag mismatch
C:\Users\berni\Desktop\Zombie Mode\gamemodes\rp.pwn(503) : warning 213: tag mismatch
C:\Users\berni\Desktop\Zombie Mode\gamemodes\rp.pwn(504) : warning 213: tag mismatch
C:\Users\berni\Desktop\Zombie Mode\gamemodes\rp.pwn(505) : warning 213: tag mismatch

Thanks in advance.
Reply
#2

I'm guessing that your MySQL_SetValue function only accepts integer values (Armor, x, y and z are all floats). If you have MySQL_SetFloat or something similar, then use that.
Reply
#3

Could someone explain to me how I would go about doing this?
Reply
#4

Quote:
Originally Posted by Dokins
Посмотреть сообщение
Could someone explain to me how I would go about doing this?
Quote:
Originally Posted by Vince
Посмотреть сообщение
MySQL_SetFloat
4char
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)