Can't figure out what's wrong
#1

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!
Reply
#2

Tag Mismatch is where two pieces of data are in the wrong order.
Reply
#3

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.
Reply
#4

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));

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)