28.10.2010, 19:36
How do make? :3
Thanks, now works, but how do i edit that 3D label, if i do like /editcarlaber <text> What it needed and how do [If you are at car, then will edits that car 3D label, see where you are sitting a CAR] ? (Dont type a command, just i need known function or what... or you can do explain..) |
https://sampwiki.blast.hk/wiki/Update3DTextLabelText you mean this?
|
https://sampwiki.blast.hk/wiki/Update3DTextLabelText you mean this?
|
Thanks, now works, but how do i edit that 3D label, if i do like /editcarlabel <text> What it needed and how do [If you are at car, then will edits that car 3D label, see where you are sitting a CAR] ? (Dont type a command, just i need known function or what... or you can do explain..) |
https://sampwiki.blast.hk/wiki/Update3DTextLabelText you mean this?
|
vehicle3Dtext = Create3DTextLabel(v2rk, 0xFFFFFFAA, 0.0, 0.0, 0.0, 50.0, 0, 1 );//Creating TextLabel Attach3DTextLabelToVehicle( vehicle3Dtext, h, 0.0, 0.0, 2.0);//Attaching Text Label To Vehicle
if(strcmp(cmd,"/changecarlabel",true)==0) { if(IsPlayerInAnyVehicle(playerid)) // Checking, is player in car { new string5[256]; format(string5, sizeof string5, "God car"); Update3DTextLabelText(vehicleid, 0xFFFFFFAA, string5); } return 1; }
GetPlayerVehicleID(vehicleid)
C:\Program Files\SA-MP Serverpack\gamemodes\***.pwn(13413) : warning 213: tag mismatch
Update3DTextLabelText(vehicleid, 0xFFFFFFAA, string5);
if(strcmp(cmd,"/changecarlabel",true)==0) { if(IsPlayerInAnyVehicle(playerid)) // Checking, is player in car { new string5[256]; format(string5, sizeof string5, "test"); Update3DTextLabelText(vehicleid, 0xFFFFFFAA, string5); } return 1; }
new Text3D:CarLabels[MAX_VEHICLES];
CarLabels[h] = Create3DTextLabel(v2rk, 0xFFFFFFAA, 0.0, 0.0, 0.0, 50.0, 0, 1 );//Creating TextLabel
Attach3DTextLabelToVehicle( CarLabels[h], h, 0.0, 0.0, 2.0);//Attaching Text Label To Vehicle
if(strcmp(cmd,"/changecarlabel",true)==0)
{
if(IsPlayerInAnyVehicle(playerid)) // Checking, is player in car
{
new vehicleid = GetPlayerVehicleID(playerid);
new string5[128];
format(string5, sizeof string5, "test");
Update3DTextLabelText(CarLabels[vehicleid], 0xFFFFFFAA, string5);
}
return 1;
}
(13415) : warning 213: tag mismatch |
CarLabels[h] = Create3DTextLabel(v2rk, 0xFFFFFFAA, 0.0, 0.0, 0.0, 50.0, 0, 1 );//Creating TextLabel |