if interior...
#1

Код:
if(GetPlayerInterior(playerid) == 1)
{
return 1;
}
Doesn't work is there an alliterative?
Reply
#2

That is the right way to do it. Remember that GetPlayerInterior returns the current interior, not if the player is in a interior. For that you would need to do this

pawn Код:
if(GetPlayerInterior(playerid) != 0) return 1;
Reply
#3

It says tag mismatch
the thing is like this:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 3.0, 2194.970947, 1975.652832, 11.282303 && GetPlayerInterior(playerid) == 1))
Reply
#4

It should be like this

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 3.0, 2194.970947, 1975.652832, 11.282303) && GetPlayerInterior(playerid) == 1)
Reply
#5

Quote:
Originally Posted by [HiC]TheKiller
Посмотреть сообщение
It should be like this

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 3.0, 2194.970947, 1975.652832, 11.282303) && GetPlayerInterior(playerid) == 1)
lmao cannot believe I couldn't see the problem tyvm!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)