3d Text Labels Question
#3

Quote:
Originally Posted by Alpay0098
Посмотреть сообщение
Can you show us more code If it's possible please ...
I'll take some code from my system here.

First I create my text label.

PHP код:
new labelText[128];
format(labelTextsizeof(labelText), "{FFFFFF}Planted by %s; ID %i\n{FE642E}0 Percent Completed\n{FFFFFF}/seizeweed"GetUserName(playerid), individualSlot);
weedData[slotToUse][weedLabel] = Create3DTextLabel(labelTextCOLOR_YELLOWweedData[slotToUse][weedPosition][0], weedData[slotToUse][weedPosition][1], (weedData[slotToUse][weedPosition][2] - 0.5), 30GetPlayerVirtualWorld(playerid), 0); 
Next I update my label.

PHP код:
format(labelTextsizeof(labelText), "{FFFFFF}Planted by %s; ID %i\n{58D3F7}ready to /harvest\n{FFFFFF}/seizeweed"GetUserName(weedData[i][weedOwner]), iweedData[i][weedStatus]);
Update3DTextLabelText(weedData[i][weedLabel], COLOR_WHITElabelText); 
Finally I delete my label.

PHP код:
Delete3DTextLabel(weedData[i][weedLabel]); 
Now all this works fine, but let's say there are 4 systems using labels, weed, bombs, cars, etc.. How do I ensure these do not conflict? Hopefully you understand.
Reply


Messages In This Thread
3d Text Labels Question - by DanLore - 01.05.2015, 18:10
Re: 3d Text Labels Question - by Alpay0098 - 01.05.2015, 18:12
Re: 3d Text Labels Question - by DanLore - 01.05.2015, 18:17
Re: 3d Text Labels Question - by Mencent - 01.05.2015, 18:51
Re: 3d Text Labels Question - by J0sh... - 01.05.2015, 18:52
Re: 3d Text Labels Question - by Mencent - 01.05.2015, 18:54
Re: 3d Text Labels Question - by DanLore - 01.05.2015, 18:57

Forum Jump:


Users browsing this thread: 3 Guest(s)