13.04.2009, 16:17 
	
	
	
		Hi. I have this code:
and I get a warning "possibly unattended assignment". How to fix it? Defines:
Thanks.
	
	
	
	
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
	if(IsPlayerConnected(playerid))
	{
		if(pickupid = LVElevPickup[0])
		{
			SetPlayerPos(playerid, 1616.606, 1153.107, -214.306);
		}
		else if(pickupid = LVElevPickup[1])
		{
			SetPlayerPos(playerid, 1614.222, 1166.552, 14.633);
		}
	}
	return 1;
}
Код:
new LVElevPickup[2]; LVElevPickup[0] = CreatePickup(1318, 23, 1614.143, 1164.305, 14.367); // LV-Elev-Up-Pickup LVElevPickup[1] = CreatePickup(1318, 23, 1616.587, 1154.803, -214.248); // LV-Elev-Down-Pickup



 
	