Message appear four times
#1

Why does the error message appear four times?

Code:
if(cargopicked[playerid] == 1)
	{
	    for(new i; i < sizeof(meatcar); i++)
	    {
			if(IsPlayerInRangeOfVehicle(playerid, meatcar[i], 4))
			{
			    RemovePlayerAttachedObject(playerid, 0);
			    SendClientMessage(playerid, COLOR_YELLOW, "You loaded the cargo into the van, now get inside and drive it.");
			    SendNearbyMessage(playerid, 30.0, COLOR_PURPLE, "** %s places the bag of meat in the back of the van.", ReturnName(playerid, 0));
			}
			else
			{
			    SendClientMessage(playerid, COLOR_GREY, "You are not behind a van.");
			}
		}
	}
This message appear even if I do the thing right and it displays four times
Code:
SendClientMessage(playerid, COLOR_GREY, "You are not behind a van.");
Reply


Messages In This Thread
Message appear four times - by AndreiWow - 29.08.2016, 22:48
Re: Message appear four times - by Sanady - 29.08.2016, 22:57
Re: Message appear four times - by Shinja - 29.08.2016, 23:08
Re: Message appear four times - by AndreiWow - 29.08.2016, 23:10
Re: Message appear four times - by Shinja - 29.08.2016, 23:15
Re: Message appear four times - by PrO.GameR - 30.08.2016, 08:04

Forum Jump:


Users browsing this thread: 1 Guest(s)