PHP Code:
ExpProgress(playerid)
{
? ? return playerData[playerid][pExp] == 0 ? 0 :?playerData[playerid][pExp]*100/PlayerRequiredExp(playerid);
}
I think doing this check should work, try testing.
[Pawn] Divide by zero
|
Messages In This Thread |
Divide by zero - by Zow - 2021-01-20, 06:02 PM
RE: Divide by zero - by RhaegarX - 2021-01-20, 06:55 PM
|