CreateDynamic3DTextLabel, Not working correctly.
#1

pawn Код:
if(VehForSale[vehicleid] == 0)
    {
        printf("%d veh for sale", VehForSale[vehicleid]);
        VehForSale[vehicleid] = 1;
        printf("%d veh for sale after", VehForSale[vehicleid]);
        new string[128];
        new name = VehModel[vehicleid] - 400;
        printf("%d model", VehModel[vehicleid]);
        new Float: x, Float: y, Float: z;
        MySQL_SetInteger(VehicleSQLID[vehicleid], "VehForSale", 1, "vehicles");
        printf("%d vehsqlid", VehicleSQLID[vehicleid]);
        GetVehiclePos(vehicleid, x,y,z);
        format(string, sizeof(string), "%s, $%d, %s", VehicleNames[name], VehPrice[vehicleid], VehPlate[vehicleid]);
       
        VehicleLabel[vehicleid] = CreateDynamic3DTextLabel(string, COLOUR_WHITE, x,y, z, 100.0, INVALID_PLAYER_ID, vehicleid, 0, 0, -1, -1, 20.0);
        Attach3DTextLabelToVehicle(VehicleLabel[vehicleid] ,vehicleid,0.0,0.0,0.0);
        printf("%s Veh label", string);
        SendClientMessage(playerid, COLOUR_WHITE, "Business vehicle is now for sale.");
    }

All the prints return as they should....

it just won't create the label and I'm using a streamer.

Quote:

[16:43:50] 8 biz owned
[16:43:50] 8 veh biz id
[16:43:50] 8 biz owned
[16:43:50] 8 veh biz id
[16:43:50] 0 veh for sale
[16:43:50] 1 veh for sale after
[16:43:50] 579 model
[16:43:50] 2 vehsqlid
[16:43:50] Huntley, $5000, BRLHZIV Veh label
[16:43:59] 8 biz owned
[16:43:59] 8 veh biz id

pawn Код:
new Text3D: VehicleLabel[MAX_VEHICLES];
Reply
#2

AttachDynamic3DTextLabelToVehicle
Reply
#3

Actually, that doesn't exist.
Reply
#4

Код:
if(VehForSale[vehicleid] == 0)
    {
        printf("%d veh for sale", VehForSale[vehicleid]);
        VehForSale[vehicleid] = 1;
        printf("%d veh for sale after", VehForSale[vehicleid]);
        new string[128];
        new name = VehModel[vehicleid] - 400;
        printf("%d model", VehModel[vehicleid]);
        new Float: x, Float: y, Float: z;
        MySQL_SetInteger(VehicleSQLID[vehicleid], "VehForSale", 1, "vehicles");
        printf("%d vehsqlid", VehicleSQLID[vehicleid]);
        GetVehiclePos(vehicleid, x,y,z);
        format(string, sizeof(string), "%s, $%d, %s", VehicleNames[name], VehPrice[vehicleid], VehPlate[vehicleid]);
        VehicleLabel[vehicleid] = Create3DTextLabel(string, COLOUR_WHITE, x,y, z, 100.0, INVALID_PLAYER_ID, vehicleid, 0, 0, -1, -1, 20.0);
        Attach3DTextLabelToVehicle(VehicleLabel[vehicleid] ,vehicleid,0.0,0.0,0.0);
        printf("%s Veh label", string);
        SendClientMessage(playerid, COLOUR_WHITE, "Business vehicle is now for sale.");
    }
Reply
#5

I'm using a streamer so I need DynamicLabels.
Reply
#6

Still unresolved.
Reply
#7

I dont know if this helps, but as someone quoted an invalid function above, it just reminded me of some include I saw on samp forums, which had that function. Just look it up, if u ddint find it PM me i'll try to get it for you.
Reply
#8

Quote:
Originally Posted by teomakedonija
Посмотреть сообщение
AttachDynamic3DTextLabelToVehicle
Why would you even post without reading the functions.

pawn Код:
Text3D:CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
It is automatically attached when created there is no need to attach it again one more thing the streamdistance should be the same as drawdistance.
Reply
#9

Thank you, I'll give it a try.
Reply
#10

Oh you made another thread for the same problem... I guess I wasted my time posting on the other thread -_-

Simply: Don't make multiple threads for the same problem, it's kind of annoying.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)