20.03.2018, 19:42
Bom, pelo oque eu entendi vocк precisa usar matemбtica simples, teste:
Код HTML:
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; }