15.10.2018, 15:37
Quote:
|
Olб, BrGabrielBr.
Remova a funзгo DarBope(string); do cуdigo e veja se o erro persiste. Se o erro parar, analise a funзгo DarBope. |
PHP код:
stock Experience(playerid, value)
{
Point[playerid][pEXP] += value;
new exp = GetValueXP(playerid);
if(Point[playerid][pEXP] >= exp)
{
SetPlayerScore(playerid, ++Player[playerid][Score]);
new tmp = (Point[playerid][pEXP] - exp);
Point[playerid][pEXP] = tmp;
SetProgressBarMaxValue(BARXP[playerid], GetValueXP(playerid));
SetProgressBarValue(BARXP[playerid], tmp);
GameTextForPlayer(playerid, "~y~VOCE UPOU DE LEVEL!!!!", 3000, 3);
Salvar_Conta(playerid);
}
else SetProgressBarValue(BARXP[playerid], Point[playerid][pEXP]);
return 1;
}
//==============================================================================
forward UpdateBar(playerid);
public UpdateBar(playerid)
{
SetProgressBarValue(BARXP[playerid], Point[playerid][pEXP]);
SetProgressBarMaxValue(BARXP[playerid], GetValueXP(playerid));
UpdateProgressBar(BARXP[playerid], playerid);
new str[100];
format(str, sizeof(str), "%d/%d", Point[playerid][pEXP], GetValueXP(playerid));
TextDrawSetString(TDXP[0], str);
return 1;
}


