IsPlayerInRangeOfPOint issue
#3

Код:
public OnPlayerUpdate(playerid)
{

	if(IsPlayerInRangeOfPoint(playerid, 12.0, 997.0865,-7995.4355,44.1828))
	{

	if(IsPlayerInRangeOfPoint(playerid, 12.0, 248.5794,3768.5403,24.7804))//Is this like inside this ^ one?
	{ 
	    if(PlayerWinner[playerid] == 0)
	    {
	        new mystring[200], name[200];
         	GetPlayerName(playerid, name, 24);
          	format(mystring, 128, "{FF0000}(%s (%d)){00FFFC} Has Completed Skydive Challenge!(/sdc) And Earned 50 Score! ", name, playerid);
           	SendClientMessageToAll(-1,  mystring);
           	SetPlayerScore(playerid, GetPlayerScore(playerid) + 50);
	        PlayerWinner[playerid] = 1;
	        SetPlayerPos(playerid, 413.7531,2454.8821,16.4844);
	        SetPlayerVirtualWorld(playerid, 0);
	    }
	}
Edit: If you are using 128 for mystring and 24 for name[=LIMIT].. Use "new mystring[128], name[24]".. It aint gonna fix anything but will save memory..
Reply


Messages In This Thread
IsPlayerInRangeOfPOint issue - by KingyKings - 04.01.2014, 20:24
Re: IsPlayerInRangeOfPOint issue - by Pottus - 04.01.2014, 21:21
Re: IsPlayerInRangeOfPOint issue - by Mic_H - 04.01.2014, 21:30

Forum Jump:


Users browsing this thread: 1 Guest(s)