Tag mismatch problem - 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 problem (
/showthread.php?tid=344285)
Tag mismatch problem -
Scripter12345 - 20.05.2012
Why am i getting this warning tag mismatch
pawn Код:
PlayerData[playerid][hExtID] = GetPlayerInterior(playerid);
Thank You
Re: Tag mismatch problem -
iGetty - 20.05.2012
Have you got hExtID as a float?
Re: Tag mismatch problem -
HDFord - 20.05.2012
are you trying to make a if or something?
pawn Код:
if(PlayerData[playerid][hExtID] == GetPlayerInterior(playerid))
Re: Tag mismatch problem -
Scripter12345 - 20.05.2012
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
Re: Tag mismatch problem -
iGetty - 20.05.2012
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).
Re: Tag mismatch problem -
iGetty - 20.05.2012
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.
Re: Tag mismatch problem -
Scripter12345 - 20.05.2012
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
Re: Tag mismatch problem -
iGetty - 20.05.2012
Nope, why don't you want an extra line?
Re: Tag mismatch problem -
Jonny5 - 20.05.2012
why one line?
Re: Tag mismatch problem -
Scripter12345 - 20.05.2012
Quote:
Originally Posted by iGetty
Nope, why don't you want an extra line?
|
Will it still work the same
Thank You