28.06.2011, 17:22
Well i was creating text label for a owned car and it works fine but... If someone logs off and someone get on again and have same vehicle id you will get 2 names... But i cant get it fixed... This is my code:
Creating 3D label gets created when someone logs on and the cars get created
OnPlayerDisconnect:
But it doesnt get deleted when someone leaves server. Can anyone help? :S
Creating 3D label gets created when someone logs on and the cars get created
Код:
format(string, sizeof(string), "Vehicle owned by: %s", AHouseData[HouseID][Owner]); Car3DText = Create3DTextLabel(string,0xAA3333AA,0,0,0,100.0,0); Attach3DTextLabelToVehicle(Car3DText, vid, 0,0,0);
Код:
Delete3DTextLabel(Car3DText);