2021-01-20, 06:02 PM
Code:
ExpProgress(playerid)
{
? ? new Float:exp = playerData[playerid][pExp]*100/PlayerRequiredExp(playerid);
? ? return exp;
}
PlayerRequiredExp(playerid)
{
? ? new requiredexp = playerData[playerid][pLevel] * 2000;
return requiredexp;
}
pExp are always start from 0 when you're level up
So crashdetect always give me this?Run time error 11: "Divide by zero"
I need some idea how to get pass this one
I just want to popup exp to % but I need pExp to start by 0 when level up
Is that possible?