exp td


Započeo ᗪ卂乂, Februar 10, 2018, 18:29:03 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Detaljan opis problema: uradio sam exp dt i sve sam podesio kad udjem ig pise 0/2 umesto 0/4 i kad dam sebi exp ili dobijem platu nece da se promeni na 1/4, verovatno treba neki update ili nesto ali ja to ne znam da napravim.
Dio skripte:
new PlayerText:ExpText[MAX_PLAYERS];

ExpText[playerid] = CreatePlayerTextDraw(playerid, 501.999969, 108.681480, "EXP:0/4");
	PlayerTextDrawLetterSize(playerid, ExpText[playerid], 0.299665, 1.181035);
	PlayerTextDrawAlignment(playerid, ExpText[playerid], 1);
	PlayerTextDrawColor(playerid, ExpText[playerid], -1);
	PlayerTextDrawSetShadow(playerid, ExpText[playerid], 0);
	PlayerTextDrawSetOutline(playerid, ExpText[playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, ExpText[playerid], 51);
	PlayerTextDrawFont(playerid, ExpText[playerid], 2);
	PlayerTextDrawSetProportional(playerid, ExpText[playerid], 1);
	new textexp[128];
	new iskustvo; iskustvo = (PlayerInfo[playerid][pLevel] * 2) + 2;
    format(textexp,sizeof(textexp),"EXP: %d/%d",PlayerInfo[playerid][pExp], iskustvo);
 	PlayerTextDrawSetString(playerid,ExpText[playerid],textexp);

PlayerTextDrawShow(playerid, ExpText[playerid]);

Neke slike/video za lakse dobivanje pomoci(neobavezno): moze neko da helpa?

credits: Xunder, Ino420, Muma

Citat: Pottus;3903994
SetPlayerPos("dreni1998", 666.666, 666.666, 666.666, 666.666);    ///// GO IN HELL MOTHERFUCKER

https://i.imgur.com/XHLx9oj.gif
https://i.ibb.co/ZJqQKWT/NXRX.gif

new potrebanexp = PlayerInfo[playerid][pLevel] * 2 + 2; // 1 * 2 + 2 = 4; 2 * 2 + 2 = 6...
http://wiki.sa-mp.com/wiki/PlayerTextDrawSetString // update string

Citat: \nLucius poslato Februar 10, 2018, 18:39:25 POSLE PODNE
new potrebanexp = PlayerInfo[playerid][pLevel] * 2 + 2; // 1 * 2 + 2 = 4; 2 * 2 + 2 = 6...
http://wiki.sa-mp.com/wiki/PlayerTextDrawSetString // update string
Hvala eo sredio sam <3

credits: Xunder, Ino420, Muma

Citat: Pottus;3903994
SetPlayerPos("dreni1998", 666.666, 666.666, 666.666, 666.666);    ///// GO IN HELL MOTHERFUCKER

https://i.imgur.com/XHLx9oj.gif
https://i.ibb.co/ZJqQKWT/NXRX.gif