stext[playerid] = CreatePlayer3DTextLabel(playerid,"{FF0000}Vehiculo: {FFFFFF}%s",0x008080FF,0,-2.1,0.25,10.0,INVALID_PLAYER_ID,GetPlayerVehicleID(playerid),1);
stext2[playerid] = CreatePlayer3DTextLabel(playerid,"{FF0000}Vida: {FFFFFF}",0x008080FF,0,-2.1,0.1,10.0,INVALID_PLAYER_ID,GetPlayerVehicleID(playerid),1);
stext3[playerid] = CreatePlayer3DTextLabel(playerid,"{FF0000}Gps: {FFFFFF}",0x008080FF,0,-2.1,-0.10,10.0,INVALID_PLAYER_ID,GetPlayerVehicleID(playerid),1);
new Mi_string[128];
format(Mi_string, 128, "ID del coche: %d", bla bla bla);
CreatePlayer3DTextLabel(playerid, Mi_string, bla bla bla... );
new Mi_Vehiculo[128];
new Mi_Satelite[128];
new LuxZone[MAX_ZONE_NAME];
GetPlayer2DZone(playerid, LuxZone, MAX_ZONE_NAME);
format(Mi_Vehiculo, 128, "{FF0000}Vehiculo: {FFFFFF}%s",LVehiclesName[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
format(Mi_Satelite, 128, "{FF0000}Satelite: {FFFFFF}%s",LuxZone);
stext[playerid] = CreatePlayer3DTextLabel(playerid,Mi_Vehiculo,0x008080FF,0,-2.1,0.25,10.0,INVALID_PLAYER_ID,GetPlayerVehicleID(playerid),1);
stext2[playerid] = CreatePlayer3DTextLabel(playerid,Mi_Satelite,0x008080FF,0,-2.1,0.1,10.0,INVALID_PLAYER_ID,GetPlayerVehicleID(playerid),1);
format(Mi_Vehiculo, 128, "{FF0000}Vehiculo: {FFFFFF}%s",LVehiclesName[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
format(Mi_Satelite, 128, "{FF0000}Satelite: {FFFFFF}%s",LuxZone);
format(Mi_Vida, 128, "{FF0000}Vida: {FFFFFF}%s",L_VehHealth);
stext[playerid] = CreatePlayer3DTextLabel(playerid,Mi_Vehiculo,0x008080FF,0,-2.1,0.25,10.0,INVALID_PLAYER_ID,GetPlayerVehicleID(playerid),1);
stext2[playerid] = CreatePlayer3DTextLabel(playerid,Mi_Vida,0x008080FF,0,-2.1,0.25,10.0,INVALID_PLAYER_ID,GetPlayerVehicleID(playerid),1);
stext3[playerid] = CreatePlayer3DTextLabel(playerid,Mi_Satelite,0x008080FF,0,-2.1,0.25,10.0,INVALID_PLAYER_ID,GetPlayerVehicleID(playerid),1);
format(Mi_Vehiculo, 128, "{FF0000}Vehiculo: {FFFFFF}%s",LVehiclesName[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
format(Mi_Satelite, 128, "{FF0000}Satelite: {FFFFFF}%s",LuxZone);
format(Mi_Vida, 128, "{FF0000}Vida: {FFFFFF}%d",L_VehHealth);
stext[playerid] = CreatePlayer3DTextLabel(playerid,Mi_Vehiculo,0x008080FF,0,-2.1,0.25,10.0,INVALID_PLAYER_ID,GetPlayerVehicleID(playerid),1);
stext2[playerid] = CreatePlayer3DTextLabel(playerid,Mi_Vida,0x008080FF,0,-2.1,0.25,10.0,INVALID_PLAYER_ID,GetPlayerVehicleID(playerid),1);
stext3[playerid] = CreatePlayer3DTextLabel(playerid,Mi_Satelite,0x008080FF,0,-2.1,0.25,10.0,INVALID_PLAYER_ID,GetPlayerVehicleID(playerid),1);
debes colocar Update3DTextLabelText en donde actualiza los datos.
saludos. https://sampwiki.blast.hk/wiki/Update3DTextLabelText_ES |
Losque quiero pasar a Update son el Satelite y Elde Vida, Pues te subes al coche y elde satelite y vida, cuando chocas y baja la vida, en el Text Labes sigue en 1000.00 osea, no se actualiza igual elde satelite, cuando vas a otros lugares, se queda el lugar en elque cojiste el coche, y loque quiero esque se actualize (Update), PORFAVOR, E Leido En SampWiky Y No Logro hacerlo... AYUDA
|
format(Mi_Satelite, 128, "{FF0000}Satelite: {FFFFFF}%s",LuxZone);
format(Mi_Vida, 128, "{FF0000}Vida: {FFFFFF}%d",L_VehHealth);
Update3DTextLabelText(stext3[playerid], 0x008080FF, Mi_Satelite);
Update3DTextLabelText(stext2[playerid], 0x008080FF, Mi_Vida);
Tienes que utilizarlo asн:
pawn Код:
|