Small 3dtext question - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Small 3dtext question (
/showthread.php?tid=202523)
Small 3dtext question -
Dj_maryo1993 - 24.12.2010
So if i use Update3DTextLabelText(blabla) and the 3dtext haven't been made yet , does the code automaticly create it ?
For example , i got this :
pawn Код:
format(value, sizeof(value), "Owner : %s", CarInfo[sqlid][Owner]);
CarInfo[sqlid][vehicle3Dtext] = Create3DTextLabel( value, 0xFFFF00AA, 0.0, 0.0, 0.0, 10.0, 0, 1 );
Attach3DTextLabelToVehicle( CarInfo[sqlid][vehicle3Dtext], sqlid, 0.0, 0.0, 0.0);
format(value, sizeof(value), "%s", CarInfo[sqlid][Owner]);
SetVehicleNumberPlate(sqlid,value);
Update3DTextLabelText(CarInfo[sqlid][vehicle3Dtext], 0xFFFF00AA, value);
return 1;
It will make the same thing as ?
pawn Код:
format(value, sizeof(value), "Owner : %s", CarInfo[sqlid][Owner]);
//CarInfo[sqlid][vehicle3Dtext] = Create3DTextLabel( value, 0xFFFF00AA, 0.0, 0.0, 0.0, 10.0, 0, 1 );
Attach3DTextLabelToVehicle( CarInfo[sqlid][vehicle3Dtext], sqlid, 0.0, 0.0, 0.0);
format(value, sizeof(value), "%s", CarInfo[sqlid][Owner]);
SetVehicleNumberPlate(sqlid,value);
Update3DTextLabelText(CarInfo[sqlid][vehicle3Dtext], 0xFFFF00AA, value);
return 1;
Re: Small 3dtext question -
<Weponz> - 24.12.2010
It will be the same thing if u uncomment the same line??
Anyways shouldnt [code]= Create3DTextLabel[code] answer ur question?
Re: Small 3dtext question -
Dj_maryo1993 - 24.12.2010
Didn't really undestand what you wanted to say , but i solved the problem . thanx for your answer .