PlayerToPoint / IsPlayerInRangeOfPoint
#1

Hi, the script says always, that i am not at the position, why?

pawn Код:
if(strcmp(cmd, "/rob", true) == 0)
    {
      if(IsPlayerConnected(playerid))
      {
        for(new r = 0; r < sizeof(RobInfo); r++)
        {
                if(IsPlayerInRangeOfPoint(playerid, RobInfo[r][rRaduis], RobInfo[r][rPlaceX], RobInfo[r][rPlaceY], RobInfo[r][rPlaceZ]))
                {
                   //code
                }
                else
                {
                  format(string, sizeof(string), "Du kannst hier nichts ausrauben.");
                    format(string2, sizeof(string2), "You are not at a rob place.");
                    LanguageGameTextForPlayer(playerid, string, string2,5000,3);
                    return 1;
                }
            }
        }
        return 1;
    }
Reply


Messages In This Thread
PlayerToPoint / IsPlayerInRangeOfPoint - by Justsmile - 26.11.2009, 14:56
Re: PlayerToPoint / IsPlayerInRangeOfPoint - by Toney - 26.11.2009, 15:00
Re: PlayerToPoint / IsPlayerInRangeOfPoint - by Justsmile - 26.11.2009, 15:01
Re: PlayerToPoint / IsPlayerInRangeOfPoint - by Toney - 26.11.2009, 15:04
Re: PlayerToPoint / IsPlayerInRangeOfPoint - by Justsmile - 26.11.2009, 15:06
Re: PlayerToPoint / IsPlayerInRangeOfPoint - by Toney - 26.11.2009, 15:08
Re: PlayerToPoint / IsPlayerInRangeOfPoint - by Justsmile - 26.11.2009, 15:11
Re: PlayerToPoint / IsPlayerInRangeOfPoint - by Joe Staff - 26.11.2009, 15:14
Re: PlayerToPoint / IsPlayerInRangeOfPoint - by Justsmile - 26.11.2009, 15:18
Re: PlayerToPoint / IsPlayerInRangeOfPoint - by Justsmile - 26.11.2009, 15:19

Forum Jump:


Users browsing this thread: 1 Guest(s)