SA-MP Forums Archive
Tag mismatch - 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 (/showthread.php?tid=616319)



Tag mismatch - BrianS123 - 03.09.2016

here is the line
Код:
if(IsPlayerInRangeOfPoint(playerid,3.0,hinfo[PlayerInfo[playerid][pHouse1]][Hx],hinfo[PlayerInfo[playerid][pHouse1]][Hy],hinfo[PlayerInfo[playerid][pHouse1]][Hz] || IsPlayerInRangeOfPoint(playerid,3.0,hinfo[PlayerInfo[playerid][pHouse2]][Hx],hinfo[PlayerInfo[playerid][pHouse2]][Hy],hinfo[PlayerInfo[playerid][pHouse2]][Hz])))
Like that it works :
Код:
if(IsPlayerInRangeOfPoint(playerid,3.0,hinfo[PlayerInfo[playerid][pHouse1]][Hx],hinfo[PlayerInfo[playerid][pHouse1]][Hy],hinfo[PlayerInfo[playerid][pHouse1]][Hz]))
and like that also:
Код:
if(IsPlayerInRangeOfPoint(playerid,3.0,hinfo[PlayerInfo[playerid][pHouse2]][Hx],hinfo[PlayerInfo[playerid][pHouse2]][Hy],hinfo[PlayerInfo[playerid][pHouse2]][Hz]))
so, if they were in the same line, the "Tag Mismatch" warning show up
and if each was in a single line, i got nothing


Re: Tag mismatch - luke49 - 03.09.2016

PHP код:
if(IsPlayerInRangeOfPoint(playerid,3.0,hinfo[PlayerInfo[playerid][pHouse1]][Hx],hinfo[PlayerInfo[playerid][pHouse1]][Hy],hinfo[PlayerInfo[playerid][pHouse1]][Hz]) || IsPlayerInRangeOfPoint(playerid,3.0,hinfo[PlayerInfo[playerid][pHouse2]][Hx],hinfo[PlayerInfo[playerid][pHouse2]][Hy],hinfo[PlayerInfo[playerid][pHouse2]][Hz])) 



Re: Tag mismatch - Stuntff - 03.09.2016

Show us Hx,Hy,Hz in enum


Re: Tag mismatch - BrianS123 - 03.09.2016

Quote:
Originally Posted by luke49
Посмотреть сообщение
PHP код:
if(IsPlayerInRangeOfPoint(playerid,3.0,hinfo[PlayerInfo[playerid][pHouse1]][Hx],hinfo[PlayerInfo[playerid][pHouse1]][Hy],hinfo[PlayerInfo[playerid][pHouse1]][Hz]) || IsPlayerInRangeOfPoint(playerid,3.0,hinfo[PlayerInfo[playerid][pHouse2]][Hx],hinfo[PlayerInfo[playerid][pHouse2]][Hy],hinfo[PlayerInfo[playerid][pHouse2]][Hz])) 
Works, thanks


Re: Tag mismatch - Roach_ - 03.09.2016

You forgot a ')':
Код:
if(IsPlayerInRangeOfPoint(playerid,3.0,hinfo[PlayerInfo[playerid][pHouse1]][Hx],hinfo[PlayerInfo[playerid][pHouse1]][Hy],hinfo[PlayerInfo[playerid][pHouse1]][Hz]) || IsPlayerInRangeOfPoint(playerid,3.0,hinfo[PlayerInfo[playerid][pHouse2]][Hx],hinfo[PlayerInfo[playerid][pHouse2]][Hy],hinfo[PlayerInfo[playerid][pHouse2]][Hz]))
Compare the two, the first one from your post and the one here and you'll understand