Annoying Tag Mismatch
#1

So i've been scripting a dynamic HQ system for my factions, wich save's in the factions files. But since i'm not experienced in DINI, i cant get this solved:
pawn Код:
C:\Users\admin\Desktop\LSC-RP\gamemodes\LSC-RP.pwn(1336) : warning 213: tag mismatch
C:\Users\admin\Desktop\LSC-RP\gamemodes\LSC-RP.pwn(1337) : warning 213: tag mismatch
C:\Users\admin\Desktop\LSC-RP\gamemodes\LSC-RP.pwn(1338) : warning 213: tag mismatch
C:\Users\admin\Desktop\LSC-RP\gamemodes\LSC-RP.pwn(1340) : warning 213: tag mismatch
C:\Users\admin\Desktop\LSC-RP\gamemodes\LSC-RP.pwn(1340) : warning 213: tag mismatch
C:\Users\admin\Desktop\LSC-RP\gamemodes\LSC-RP.pwn(1399) : warning 213: tag mismatch
C:\Users\admin\Desktop\LSC-RP\gamemodes\LSC-RP.pwn(1399) : warning 213: tag mismatch
C:\Users\admin\Desktop\LSC-RP\gamemodes\LSC-RP.pwn(1400) : warning 213: tag mismatch
C:\Users\admin\Desktop\LSC-RP\gamemodes\LSC-RP.pwn(1400) : warning 213: tag mismatch
C:\Users\admin\Desktop\LSC-RP\gamemodes\LSC-RP.pwn(1401) : warning 213: tag mismatch
C:\Users\admin\Desktop\LSC-RP\gamemodes\LSC-RP.pwn(1401) : warning 213: tag mismatch
C:\Users\admin\Desktop\LSC-RP\gamemodes\LSC-RP.pwn(1403) : warning 213: tag mismatch
C:\Users\admin\Desktop\LSC-RP\gamemodes\LSC-RP.pwn(1403) : warning 213: tag mismatch
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


13 Warnings.
Loadfactions stock:
pawn Код:
format(file, sizeof(file), "factions/HELL.ini"); // line 1394
    format(FacInfo[8][facLeader], MAX_PLAYER_NAME, "%s", dini_Get(file, "HLeader")); // line 1395
    format(FacInfo[8][facMembers], 8, "%s", dini_Get(file, "HMembers")); // line 1396
    format(FacInfo[8][hqLevel], 8, "%s", dini_Get(file, "Level")); // line 1397
    format(FacInfo[8][hqStatus], 8, "%s", dini_Get(file, "Status")); // line 1398
    format(FacInfo[8][Float:hqX], 32, "%s", dini_Float(file, "hqX")); // line 1399
    format(FacInfo[8][Float:hqY], 32, "%s", dini_Float(file, "hqY")); // line 1400
    format(FacInfo[8][Float:hqZ], 32, "%s", dini_Float(file, "hqZ")); // line 1401
    format(FacInfo[8][hqPickup], 8, "%s", dini_Get(file, "Pickup")); // line 1402
    format(FacInfo[8][Text3D:hqText], 8, "%s", dini_Get(file, "hqText")); // line 1403
    print("Hells Angel's files loaded successfully."); // line 1404
Savefactions stock:
pawn Код:
format(file, sizeof(file), "factions/HELL.ini"); // line 1329
    if(!dini_Exists(file)) dini_Create(file);// line 1330
    dini_Set(file, "HLeader", FacInfo[8][facLeader]);// line 1331
    dini_Set(file, "HMembers", FacInfo[8][facMembers]);// line 1332
    dini_Set(file, "HStrikes", FacInfo[8][facStrikes]);// line 1333
    dini_Set(file, "Level", FacInfo[8][hqLevel]);// line 1334
    dini_Set(file, "Status", FacInfo[8][hqStatus]);// line 1335
    dini_FloatSet(file, "hqX", FacInfo[8][Float:hqX]);// line 1336
    dini_FloatSet(file, "hqY", FacInfo[8][Float:hqY]);// line 1337
    dini_FloatSet(file, "hqZ", FacInfo[8][Float:hqZ]);// line 1338
    dini_Set(file, "Pickup", FacInfo[8][hqPickup]);// line 1339
    dini_Set(file, "hqText", FacInfo[8][Text3D:hqText]);// line 1340
    print("Hells Angels files saved successfully.");// line 1341
    return 1; // line 1342

Thanks!
Reply
#2

You need to show us the dini_Set and dini_FloatSet
Reply
#3

Those are the Dini_Set and Dini_FloatSet right?
Reply
#4

pawn Код:
[Float:hqX]
[Text3D:hqText]
This is not how we use them. Remove the tags.
Reply
#5

Quote:
Originally Posted by _Zeus
Посмотреть сообщение
pawn Код:
[Float:hqX]
[Text3D:hqText]
This is not how we use them. Remove the tags.
fixed 8 of the 13 warnings/errors:
pawn Код:
C:\Users\admin\Desktop\LSC-RP\gamemodes\LSC-RP.pwn(1340) : warning 213: tag mismatch
C:\Users\admin\Desktop\LSC-RP\gamemodes\LSC-RP.pwn(1399) : warning 213: tag mismatch
C:\Users\admin\Desktop\LSC-RP\gamemodes\LSC-RP.pwn(1400) : warning 213: tag mismatch
C:\Users\admin\Desktop\LSC-RP\gamemodes\LSC-RP.pwn(1401) : warning 213: tag mismatch
C:\Users\admin\Desktop\LSC-RP\gamemodes\LSC-RP.pwn(1403) : warning 213: tag mismatch
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Warnings.
Cant find any tags on those.....
Reply
#6

Show the lines please.
Reply
#7

Posted the lines in the script in top post.
Reply
#8

I still see the tags. Change to:

pawn Код:
format(FacInfo[8][hqX], 32, "%s", dini_Float(file, "hqX")); // line 1399
format(FacInfo[8][hqY], 32, "%s", dini_Float(file, "hqY")); // line 1400
format(FacInfo[8][hqZ], 32, "%s", dini_Float(file, "hqZ")); // line 1401
format(FacInfo[8][hqPickup], 8, "%s", dini_Get(file, "Pickup")); // line 1402
format(FacInfo[8][hqText], 8, "%s", dini_Get(file, "hqText")); // line 1403
Reply
#9

Oh wait, sorry, i aint really 100% sober at the moment, didn't read correctly what you asked about lines:
The line
pawn Код:
dini_Set(file, "hqText", FacInfo[8][hqText]);// line 1340
   



        format(FacInfo[8][hqX], 32, "%s", dini_Float(file, "hqX")); // line 1399
    format(FacInfo[8][hqY], 32, "%s", dini_Float(file, "hqY")); // line 1400
    format(FacInfo[8][hqZ], 32, "%s", dini_Float(file, "hqZ")); // line 1401
    format(FacInfo[8][hqText], 8, "%s", dini_Get(file, "hqText")); // line 1403
These give warning tag mismatch
Reply
#10

What the hell are you even doing? У_o
To assign a numerical value, one uses the assignment operator: =

pawn Код:
FacInfo[8][hqX] = dini_Float(file, "hqX");
Though I encourage you to look at other saving systems. Dini is outdated and terribly slow.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)