Can't figure out what's wrong - 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: Can't figure out what's wrong (
/showthread.php?tid=569529)
Can't figure out what's wrong -
Sickae - 31.03.2015
Hey,
I keep getting this warning but I can't figure what the hell is wrong.
Quote:
D:\Programozбs\Pawn\ufr.pwn(153) : warning 213: tag mismatch
|
That line:
Quote:
SetPlayerInterior(playerid,Pos[playerid][strval(tmp)][4]);
|
There is no problem with "Pos[playerid][strval(tmp)][4]". I've already used it in another part of the code. Also tried to copy from parts that has no warning and I've checked it many times.
Please help!
Re: Can't figure out what's wrong -
BleverCastard - 31.03.2015
Tag Mismatch is where two pieces of data are in the wrong order.
Re: Can't figure out what's wrong -
Sickae - 31.03.2015
That's why I can't figure out the source of the problem. Everything is in right order. There's not that much order though. First I use playerid to set the player's ID I want my code to be used and then the array which contains the number for interior ID.
Re: Can't figure out what's wrong -
Sickae - 31.03.2015
Okay, I fixed it. The problem was due to the type of the array. It was registered as float, so I had to round it.
Looks like this now and working.
Quote:
SetPlayerInterior(playerid,floatround(Pos[playerid][strval(tmp)][4],floatround_round));
|