05.01.2014, 01:43
Hi scripters
Is PlayerTextDrawTextSize updating like PlayerTextDrawSetString ?
I'm making my own progress bar but PlayerTextDrawTextSize is not updating when i change it ?
My Code
Any idea ?
Is PlayerTextDrawTextSize updating like PlayerTextDrawSetString ?
I'm making my own progress bar but PlayerTextDrawTextSize is not updating when i change it ?
My Code
pawn Код:
new Float:Exp = PlayerInfo[playerid][pExp];
new Float:ExpAmount = expamount[playerid];
new Float:Delba = floatdiv(Exp, ExpAmount);
new Float:procentce = floatmul(Delba, 100.00);
new Float:procent = floatadd(501.00, procentce);
printf("procent: %f", procent); // Just to make sure if the calculations are correct and they ARE CORRECT !
PlayerTextDrawTextSize(playerid,level1[playerid], procent, 80.000000); // Doesn't update
new stringexp[126];
format(stringexp,sizeof(stringexp),"%d/%d", PlayerInfo[playerid][pExp], expamount[playerid]);
PlayerTextDrawSetString(playerid, level4[playerid], stringexp); // It Updates and it is changing the values