Jump to content

[REZOLVAT] [Problema] Level Progress


szIonut
 Share

Recommended Posts

Username: szIonut
Problema întălnită: Nu mi se pune experienta si level-ul cand le primesc.
Detalii despre problemă: Am incercat sa fac un level progress si nu mi se pune experienta si level-ul acolo.
Ce ai încercat să faci înainte să postezi?: Level progress.
Cod sursă (recomandat pastebin.com) : https://pastebin.com/Sn28GjFk
Alte detalii: Asa arata in joc: https://gyazo.com/085c2b45a7f7ab79a73a09509e5af02d

Link to comment
Share on other sites

Quote

stock UpdateProgress(playerid) 
{
    new LevelProcent = ((playerVariables[playerid][pExp] * playerVariables[playerid][pLevel]) / playerVariables[playerid][pLevel]*levelexp) * 100;
    gString[0] = EOS;
    format(gString, sizeof(gString), "Level %d (%d%s)", playerVariables[playerid][pLevel], LevelProcent, "%%");
    PlayerTextDrawSetString(playerid, HudTD, gString);
    PlayerTextDrawShow(playerid, HudTD);
    SetPlayerProgressBarMaxValue(playerid, HudProgress[playerid][0], playerVariables[playerid][pLevel]*levelexp);
    SetPlayerProgressBarValue(playerid, HudProgress[playerid][0], playerVariables[playerid][pExp]);
    ShowPlayerProgressBar(playerid, HudProgress[playerid][0]);
    return true;
}

Poftim, ti-am dat ce am eu. E mai ok sa folosesti include-ul playerprogress.inc.

Link to comment
Share on other sites

  • 1 month later...
Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...