Tag mismatch
#1

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

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])) 
Reply
#3

Show us Hx,Hy,Hz in enum
Reply
#4

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
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)