Problem with < and >, and mutliplying [level system]
#3

pawn Код:
if(playerVariables[playerid][pEXP] >=  (playerVariables[playerid][pLevel] * 8 ))
{
        playerVariables[playerid][pLevel] += 1;
        playerVariables[playerid][pEXP] = 0;
        format(string, sizeof(string), "Congratulations! You have gained a level! You have unlocked new features.");
        SendClientMessage(playerid, COLOR_YELLOW, string);
        format(string, sizeof(string), "You are now level %d. Your EXP has been resetted to 0.",                            playerVariables[playerid][pLevel]);
        SendClientMessage(playerid, COLOR_YELLOW, string);
        SetPlayerScore(playerid, playerVariables[playerid][pLevel]);
}
Reply


Messages In This Thread
Problem with < and >, and mutliplying [level system] [FIXED!] - by Sledge - 09.08.2011, 15:54
Re: Problem with < and >, and mutliplying [level system] - by MadeMan - 09.08.2011, 16:01
Re: Problem with < and >, and mutliplying [level system] - by Cameltoe - 09.08.2011, 16:05

Forum Jump:


Users browsing this thread: 1 Guest(s)