I have a problem with boombox
#1

When owner of boombox exit don't destroy him boombox
Код:
  if(GetPVarType(playerid, "pDynamicBB"))
	{
 		DestroyDynamicObject(GetPVarInt(playerid, "pDynamicBB"));
   		DestroyDynamic3DTextLabel(Text3D:GetPVarInt(playerid, "pDynamicBBLabel"));
	    if(GetPVarType(playerid, "pDynamicBBArea"))
        {
     		new string[128];
			format(string, sizeof(string), "{FFFFFF}(({6699FF} Propietarul la Boombox (%s) s-a deconectat {FFFFFF}))", SenderName(playerid));
   			foreach(Player, i)
			{
        		if(IsPlayerInDynamicArea(i, GetPVarInt(playerid, "pDynamicBBArea")))
          		{
            		StopAudioEx(i);
              		SendClientMessage(i, COLOR_PURPLE, string);
				}
			}
		}
	}
what's wrong?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)