Attach3DTextLabelToVehicle help
#5

Quote:
Originally Posted by Crayder
Посмотреть сообщение
1. Where are you setting `keyid`?
2. Can you verify that both the vehicle and the label exists before attaching?
i change the code abit but still same problem


PHP код:
               new key SCRIPT_CARS;
            if(
GetPVarInt(playerid"CarKey1") != SCRIPT_CARS && OwnableVehicle(GetPVarInt(playerid"CarKey1"))) { key GetPVarInt(playerid"CarKey1"); }
            if(
GetPVarInt(playerid"CarKey2") != SCRIPT_CARS && OwnableVehicle(GetPVarInt(playerid"CarKey2"))) { key GetPVarInt(playerid"CarKey2"); }
            if(
GetPVarInt(playerid"CarKey3") != SCRIPT_CARS && OwnableVehicle(GetPVarInt(playerid"CarKey3"))) { key GetPVarInt(playerid"CarKey3"); }
               if (
key == SCRIPT_CARS) return SendClientMessage(playeridCOLOR_WHITE"You don't have a key to this vehicle slot.");
               if (
CarInfo[key][cOwned] == 0) return SendClientMessage(playeridCOLOR_WHITE"The vehicle you have a key to is invalid.");
               
vehicle3Dtext[key] = Create3DTextLabel("Example Text"0xFF0000AA0.00.00.050.001);
            
Attach3DTextLabelToVehicle(vehicle3Dtext[key], key0.009999, -0.0199990.854999); 
Reply


Messages In This Thread
Attach3DTextLabelToVehicle help - by N0FeaR - 10.02.2016, 11:26
Re: Attach3DTextLabelToVehicle help - by Galletziz - 10.02.2016, 14:09
Re: Attach3DTextLabelToVehicle help - by N0FeaR - 10.02.2016, 16:07
Re: Attach3DTextLabelToVehicle help - by Crayder - 10.02.2016, 16:42
Re: Attach3DTextLabelToVehicle help - by N0FeaR - 10.02.2016, 17:53

Forum Jump:


Users browsing this thread: 1 Guest(s)