Need help deleting 3DText
#1

I have created a matrix system for buses, this is what I got:
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1000)
    {
        if(response)
        {
            if(listitem == 0)
            {
                new vehicle_id, Text3D:tabloo;
                tabloo = Create3DTextLabel("1 Ida-Ranniku",0x66CC00FF,1141.34, -1389.88, 15.06,30.0,0);
			    //Creating the Vehicle
			    vehicle_id = GetPlayerVehicleID(playerid);
			    //Attaching Text Label To Vehicle
			    Attach3DTextLabelToVehicle( tabloo, vehicle_id, 0.0, 0.0, 2.0);
                SendClientMessage(playerid, 0x66CC00FF, "Tabloo muudetud!" );
            }
            else if(listitem == 1)
            {
                new vehicle_id, Text3D:tabloo;
                tabloo = Create3DTextLabel("1 Ida-Ranniku",0x66CC00FF,1141.34, -1389.88, 15.06,30.0,0);
			    //Creating the Vehicle
			    vehicle_id = GetPlayerVehicleID(playerid);
			    //Attaching Text Label To Vehicle
			    Attach3DTextLabelToVehicle( tabloo, vehicle_id, 0.0, 0.0, 2.0);
                SendClientMessage(playerid, 0x66CC00FF, "Tabloo muudetud!" );
            }
        }
        return 1;
    }
	return 1;
}
This works perfectly, but what I need is that it deletes old 3Dtext if that exists (and deletes it only on that vehicle, which player is in). Could anyone help me?
Reply


Messages In This Thread
Need help deleting 3DText - by kert93 - 09.10.2011, 18:41
Re: Need help deleting 3DText - by [MWR]Blood - 09.10.2011, 18:43
Re: Need help deleting 3DText - by Stigg - 09.10.2011, 18:44
Re: Need help deleting 3DText - by kert93 - 09.10.2011, 18:51
Re: Need help deleting 3DText - by kert93 - 10.10.2011, 08:27
Re: Need help deleting 3DText - by GrimR - 10.10.2011, 09:28

Forum Jump:


Users browsing this thread: 2 Guest(s)