help me about exp
#2

https://sampwiki.blast.hk/wiki/Format

The output of a format always has to be a string value, however you're trying to fit it into an integer

Код:
new exp = GetPlayerScore(playerid); 
format(exp,sizeof(exp),"Exp:%i/%i",GetPlayerScore(playerid),JumlahExp[playerid]);
You almost have your code right. Convert the exp integer to a string and remove that value assignation to the GetPlayerScore function. In the following line, instead of exp inside the SetPlayerScore function you can use the GetPlayerScore function itself plus one.

Try it and come back if you need more help.
Reply


Messages In This Thread
help me about exp - by Jihanz - 30.03.2017, 10:33
Re: help me about exp - by Toroi - 30.03.2017, 10:38
Re: help me about exp - by Jihanz - 30.03.2017, 10:40
Re: help me about exp - by Jihanz - 30.03.2017, 10:42
Re: help me about exp - by Toroi - 30.03.2017, 10:46
Re: help me about exp - by Jihanz - 30.03.2017, 11:02
Re: help me about exp - by Jihanz - 30.03.2017, 11:13

Forum Jump:


Users browsing this thread: 1 Guest(s)