[Assistance needed] - Failed to loop through players.
#3

I've tried changing it to the below, but it didn't help either. Should i completely remove return 1; ?

Код:
	for(new i = 0; i<APPROX_PLAYERS; i++)
		{
		if( (GetPlayerVirtualWorld(i) == houselocW) && (IsPlayerInRangeOfPoint(i, 20, houselocX, houselocY, houselocZ)) )
		    {
			SendClientMessage(i, COLOR_YELLOW, "( I ) Riiing.. riing.");
			SendClientMessage(playerid, COLOR_YELLOW, "( I ) Biip.. biip.");
			}else{
			SendClientMessage(playerid, COLOR_YELLOW, "( I ) No answer");
			}
            return 1;
	    }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)