dini_Bool and dini_BoolSet returns tag mismatchs D:
#1

Hey,I am just working on one of my game modes and suddenly,that warning hits me:
Code:
(346) : warning 213: tag mismatch
The warning is in dini_Bool:
pawn Code:
//Code and shit//

dini_BoolSet(file,"Registered",true);  //No warnings

//More code,more shit of course.

//Omg there is even more shit

pInfo[playerid][player_registered] = dini_Bool(file,"Registered"); //Tag mismatch.

//And more shit after that shit.
Well,it doesn't matter what I'm trying,the warning is still there.
And yes,I've enumerated the variable with a Boolean tag.("bool:").

I'd be grateful for any kind of help,thanks in advance.
Reply
#2

What variable, player_registered? If not, do that now.
Else idk what's wrong.
Reply
#3

Make sure that in your pInfo enum, that you've declared 'player_registered' like so:
pawn Code:
Bool:player_registered
Reply
#4

Yep.
pawn Code:
enum player_information_enum
{
    player_name[MAX_PLAYER_NAME],
    player_ip[16],
    bool:player_registered,
    bool:player_logged,
        //There is a continuation,but it's not the matter right now.
};
Reply
#5

Quote:
Originally Posted by [XST]O_x
View Post
Yep.
pawn Code:
enum player_information_enum
{
    player_name[MAX_PLAYER_NAME],
    player_ip[16],
    bool:player_registered,
    bool:player_logged,
        //There is a continuation,but it's not the matter right now.
};
Try capitalize the 'b' ('Bool:'). If I recall, pawn has always been a pain for me with case sensitivity.

This forum requires that you wait 120 seconds between posts. Please try again in 21 seconds. FFFFFFFFFFFFFFFFFFFFFF
Reply
#6

Thanks for trying,but still no,it even returns more warnings that way,also guessed that what would happen before as 'bool:' has a blue syntax and not 'Bool:' :P
Reply
#7

Quote:
Originally Posted by Da_Boss
View Post
no his is right.. its not B its b

pawn Code:
new bool:robsex[MAX_PLAYERS];
see

(somewhat in the pawn code it doesnt show it as blue here.. but it does in pawno)
Clearly you misread my message. I asked him to CHANGE it to a capital 'B', from a lower-case 'b' to see the results.

Quote:
Originally Posted by [XST]O_x
View Post
Thanks for trying,but still no,it even returns more warnings that way,also guessed that what would happen before as 'bool:' has a blue syntax and not 'Bool:' :P
I've never really bothered using booleans, seeing as pawn doesn't dynamically process memory, so an integer would take up just as many bytes as a boolean (if I recall correctly).

Also, for some reason (at least in the dini include I have):
pawn Code:
strval(dini_Get(filename,key));
it tries to return an integer.

Quote:
Originally Posted by Da_Boss
View Post
i don't see any capital B's

Clear YOU Misunderstood.
Oh god... how can you not read? I asked him to capitalize it, so it would be in upper-case, not lower-case. He had a lower-case 'b', which I asked him to capitalize to 'B', to see the results. Stop posting, you're extremely retarded and you're clearly failing to help out here.

Quote:
Originally Posted by Da_Boss
View Post
well capital B Doesnt work..

ye kid your not helping here either all you do is post on peoples topic saying bullshit and talk shit and You Should Learn To Shut THe Fuck Up You Idiot , You Act Like Your The King NoOne Respects You Fail Epicly.
Love how you edit your post when you realize you're wrong. I don't care for respect, clearly nobody even respects you as nobody even knows you. Good going sir. And I've helped him out more than you, read my post.
Reply
#8

Quote:
Originally Posted by Calgon
View Post
Also, for some reason (at least in the dini include I have):
pawn Code:
strval(dini_Get(filename,key));
it tries to return an integer.
Just great D:
I just opened the include up and also saw that,I'm assuming there's nothing I can do,I'll switch back to integers.
Thanks for the help again.
Reply
#9

This should fix it:
pawn Code:
pInfo[playerid][player_registered] = bool:dini_Bool(file,"Registered");
Reply
#10

Quote:
Originally Posted by LarzI
View Post
This should fix it:
pawn Code:
pInfo[playerid][player_registered] = bool:dini_Bool(file,"Registered");
Holy <censored>.
Seriously,I feel so stupid right now.
Thanks,that did the job!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)