Tag mismatch problem
#1

Why am i getting this warning tag mismatch


pawn Код:
PlayerData[playerid][hExtID] = GetPlayerInterior(playerid);

Thank You
Reply
#2

Have you got hExtID as a float?
Reply
#3

are you trying to make a if or something?
pawn Код:
if(PlayerData[playerid][hExtID] == GetPlayerInterior(playerid))
Reply
#4

Quote:
Originally Posted by iGetty
Посмотреть сообщение
Have you got hExtID as a float?
No but i just tried that and it gave me a nother warning of tag mismatch


Thank You
Reply
#5

No, he is telling the variable to be saved as the interior ID. (It looks like it, because he would have pasted the whole line not just that little bit).
Reply
#6

Instead of doing PlayerData[playerid][hExtID] == GetPlayerInterior(playerid)

Try this

pawn Код:
new int = GetPlayerInterior(playerid);
Player[playerid][hExtID] = int;
Edit: Sorry for the double post, my bad.
Reply
#7

Quote:
Originally Posted by iGetty
Посмотреть сообщение
Instead of doing PlayerData[playerid][hExtID] == GetPlayerInterior(playerid)

Try this

pawn Код:
new int = GetPlayerInterior(playerid);
Player[playerid][hExtID] = int;
Edit: Sorry for the double post, my bad.
Is there any other way of doing it like to keep it one line


Thank You
Reply
#8

Nope, why don't you want an extra line?
Reply
#9

why one line?
Reply
#10

Quote:
Originally Posted by iGetty
Посмотреть сообщение
Nope, why don't you want an extra line?
Will it still work the same


Thank You
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)