Help with 3Dtext
#2

pawn Код:
new modelid = GetVehicleModel(GetPlayerVehicleID(playerid));
format(VText, sizeof (VText), "%s", (modelid) ? (VNames[modelid - 400]) : ("N/A"));
VTextLabel[vehicleid] = Create3DTextLabel(VText, 0xFFFF00FF, vX, vY, vZ, 50.0, 0,0);
Attach3DTextLabelToVehicle(VTextLabel[vehicleid], vehicleid, 0.0, 0.0, 2.0);
You should first format and then create the 3D label because the text will be NULL and the server/client might crash. You also declared VText with size 50 and you used 128 in the format. It shouldn't be longer than the original size.
Reply


Messages In This Thread
Help with 3Dtext - by iOxide - 01.01.2014, 12:57
Re: Help with 3Dtext - by Konstantinos - 01.01.2014, 13:11
Re: Help with 3Dtext - by iOxide - 01.01.2014, 13:18
Re: Help with 3Dtext - by Konstantinos - 01.01.2014, 13:42
Re: Help with 3Dtext - by iOxide - 01.01.2014, 13:46
Re: Help with 3Dtext - by Konstantinos - 01.01.2014, 13:51
Re: Help with 3Dtext - by iOxide - 01.01.2014, 13:58
Re: Help with 3Dtext - by Konstantinos - 01.01.2014, 14:04

Forum Jump:


Users browsing this thread: 2 Guest(s)