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)
+--- Thread: Tag Mismatch Help! (
/showthread.php?tid=503101)
Tag Mismatch Help! -
Youssef214 - 27.03.2014
I Get These Warnings:
pawn Код:
F:\Games 1\Gta San Andreas Multiplayer\gamemodes\LSNFS.pwn(198) : warning 213: tag mismatch
F:\Games 1\Gta San Andreas Multiplayer\gamemodes\LSNFS.pwn(199) : warning 213: tag mismatch
F:\Games 1\Gta San Andreas Multiplayer\gamemodes\LSNFS.pwn(200) : warning 213: tag mismatch
At These Codes:
pawn Код:
dini_IntSet(file, "PositionX", PX[playerid]); // Set's "Score"
dini_IntSet(file, "PositionY", PY[playerid]); // Set's "Score"
dini_IntSet(file, "PositionZ", PZ[playerid]); // Set's "Score"
How To Fix This Problem Please?
Re : Tag Mismatch Help! -
samp_boy - 27.03.2014
Put This On The Top Of Your Script
#pragma tabsize 0
If i Helped You +Rep Me
Re: Tag Mismatch Help! -
Youssef214 - 27.03.2014
Ok i forgot to Say +REP Lol.
EDIT: Still Getting These Warnings..
Re : Tag Mismatch Help! -
samp_boy - 27.03.2014
can you show us your code Pleas ? maybe i can fix it where you put the tag
Re: Tag Mismatch Help! -
Youssef214 - 27.03.2014
What you mean by "tag"??
EDIT: Ohh Ok..
Re: Tag Mismatch Help! -
jakejohnsonusa - 27.03.2014
Can you show all the code that these three lines belong to?
The tag is most likely the playerid.
Re: Tag Mismatch Help! -
Youssef214 - 27.03.2014
pawn Код:
new Float:PX[MAX_PLAYERS];
new Float:PY[MAX_PLAYERS];
new Float:PZ[MAX_PLAYERS];
Thats Where I Defined It..
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
new Float:armour,Float:health;
new vehicleid = GetPlayerVehicleID(playerid);
GetPlayerPos(playerid, PX[playerid], PY[playerid], PZ[playerid]);
GetPlayerName(playerid, pname, sizeof(pname));
format(file, sizeof(file), savefolder2,pname);
if(!dini_Exists(file)) { // If the file exist
dini_IntSet(file, "PositionX", PX[playerid]);
dini_IntSet(file, "PositionY", PY[playerid]);
dini_IntSet(file, "PositionZ", PZ[playerid]);
}
return 1;
}
public OnPlayerSpawn(playerid)
{
GetPlayerName(playerid, pname, sizeof(pname));
format(file, sizeof(file), savefolder2,pname); // Formatting file
if(!dini_Exists(file)) { // If the file exist
}
else {
SetPlayerPos(playerid, PX[playerid], PY[playerid], PZ[playerid]);
}
return 1;
}
Re: Tag Mismatch Help! -
jakejohnsonusa - 27.03.2014
Well first off, the "!" means the opposite of what you're using it in. So delete that in the line.
pawn Код:
if(!dini_Exists(file))//This actually checks to make sure the file DOESN'T exist
Re: Tag Mismatch Help! -
Youssef214 - 27.03.2014
Ohh I Didn't Notice It LOL I Am Stupid..
EDIT: That Didn't Work Either..
Re: Tag Mismatch Help! -
Youssef214 - 27.03.2014
Anyone Here?