Tag Mismatch Help!
#1

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

Put This On The Top Of Your Script

#pragma tabsize 0


If i Helped You +Rep Me
Reply
#3

Ok i forgot to Say +REP Lol.

EDIT: Still Getting These Warnings..
Reply
#4

can you show us your code Pleas ? maybe i can fix it where you put the tag
Reply
#5

What you mean by "tag"??

EDIT: Ohh Ok..
Reply
#6

Can you show all the code that these three lines belong to?

The tag is most likely the playerid.
Reply
#7

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;
}
Reply
#8

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

Ohh I Didn't Notice It LOL I Am Stupid..


EDIT: That Didn't Work Either..
Reply
#10

Anyone Here?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)