CODE:
new textachvenebs[123]; new Floaticocxleii,Float:bronii; GetPlayerHealth(playerid,sicocxleii); GetPlayerArmour(playerid,bronii); format(textachvenebs, sizeof(textachvenebs),"%s\n{6666FF}Sicocxle: %d - Broni: %d",name,sicocxleii,bronii); axalitag[playerid] = Create3DTextLabel(textachvenebs,0xFFFFFFFF,0.0,0.0 ,0.0,8.0,GetPlayerVirtualWorld(playerid),1); SetPlayerHealth(playerid, 100); Attach3DTextLabelToPlayer(axalitag[playerid],playerid,0.0,0.0,0.3); BUG: It only show health 0 and armour 0 Help me Please its very important for me. |
new textachvenebs[123]; new Float:sicocxleii,Float:bronii; GetPlayerHealth(playerid,sicocxleii); GetPlayerArmour(playerid,bronii); format(textachvenebs, sizeof(textachvenebs),"%s\n{6666FF}Sicocxle: %0.1f - Broni: %0.1f",name,sicocxleii,bronii); axalitag[playerid] = Create3DTextLabel(textachvenebs,0xFFFFFFFF,0.0,0.0,0.0,8.0,GetPlayerVirtualWorld(playerid),1); SetPlayerHealth(playerid, 100);/// i don't know why u setting health here.. Attach3DTextLabelToPlayer(axalitag[playerid],playerid,0.0,0.0,0.3);
new textachvenebs[123];
new Float:sicocxleii,Float:bronii;
GetPlayerHealth(playerid,sicocxleii);
GetPlayerArmour(playerid,bronii);
printf("Sicocxle: %0.1f - Broni: %0.1f",sicocxleii,bronii);//debugging
format(textachvenebs, sizeof(textachvenebs),"%s\n{6666FF}Sicocxle: %0.1f - Broni: %0.1f",name,sicocxleii,bronii);
printf("text : %s",textachvenebs);//debugging
axalitag[playerid] = Create3DTextLabel(textachvenebs,0xFFFFFFFF,0.0,0.0,0.0,8.0,GetPlayerVirtualWorld(playerid),1);
SetPlayerHealth(playerid, 100);
Attach3DTextLabelToPlayer(axalitag[playerid],playerid,0.0,0.0,0.3);
public OnPlayerUpdate(playerid) { new textachvenebs[123]; new Floaticocxleii,Float:bronii; GetPlayerHealth(playerid,sicocxleii); GetPlayerArmour(playerid,bronii); format(textachvenebs, sizeof(textachvenebs),"%s\n{6666FF}Sicocxle: %d - Broni: %d",name,sicocxleii,bronii); Update3DTextLabelText(axalitag[playerid], 0xFFFFFFFF, textachvenebs); }
Example i want to it shows armour 0.0 health 0.0 Not Player Health
|