Jump to content

[REZOLVAT] Intrebare


Xenon
 Share

Recommended Posts

  • Username : Xenon
  • Problema întâlnită: Nu este o problema este o intrebare
  • Detalii despre problemă:  cum pot face sa se umple progrees barul in functie de cat respect points am. 
  • Ce ai încercat să faci înainte să postezi?:  -
  • Cod sursa (recomandat pastebin.com) :     https://i.imgur.com/NaU5W1o.png
  • Alte detalii : vreau sa arate si cat la suta am
Link to comment
Share on other sites

new PlayerBar:RespectBar[MAX_PLAYERS];
new points = PlayerInfo[playerid][pLevel] * 3;

RespectBar[playerid] = CreatePlayerProgressBar(playerid, 22.999992, 283.185150, 130, 10, COLOR_GENANNOUNCE, 100.0, BAR_DIRECTION_RIGHT);
ShowPlayerProgressBar(playerid, RespectBar[playerid]);
SetPlayerProgressBarMaxValue(playerid, RespectBar[playerid], points);
SetPlayerProgressBarValue(playerid, RespectBar[playerid], PlayerInfo[playerid][pRespect]);

ShowPlayerProgressBar(playerid, RespectBar[playerid]);

Si de fiecare data cand cresti RP-urile jucatorului adaugi:

SetPlayerProgressBarValue(playerid, RespectBar[playerid], PlayerInfo[playerid][pRespect]);
ShowPlayerProgressBar(playerid, RespectBar[playerid]);

 

Respecta si vei fi respectat.

 

BigInt Pawn:

Pacman C++: 

Snake C++:

Minesweeper C++:

 

mattbb.cash

leaks.ro

Link to comment
Share on other sites

new Float:procent = float(PlayerInfo[playerid][pRespect]) / float(points) * 100.0;
new str[50];
format(str, 50, "%.0f", procent);
PlayerTextDrawSetString(playerid, TextdrawTau[playerid], str);
PlayerTextDrawShow(playerid, TextdrawTau[playerid]);

Unde "TextdrawTau[playerid]" este textdraw-ul pe care tu l-ai creat.

Respecta si vei fi respectat.

 

BigInt Pawn:

Pacman C++: 

Snake C++:

Minesweeper C++:

 

mattbb.cash

leaks.ro

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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