Noob question, Levelup
#1

Alright, so i got this function that checks the players kills, and if the kills are a certain ammount, they level up. and proccess continues, so i made it, made a little command that raises the kills, It works for the first level, then it wont continue.

pawn Код:
public Levelup(playerid)
{
    if(soldier[playerid] == 1)
    {
        if(PlayerInfo[playerid][Soldierlv] == 1)
        {
            if(PlayerInfo[playerid][Kills] == 1)
            {
                PlayerInfo[playerid][Soldierlv]++;
                PlayerInfo[playerid][Level]++;
                SendClientMessage(playerid, COLOR_GREEN, "You have leveled up! Congradulations!");
            }
            if(soldier[playerid] == 1)
            {
                if(PlayerInfo[playerid][Soldierlv] == 2)
                {
                    if(PlayerInfo[playerid][Kills] == 5)
                    {
                        PlayerInfo[playerid][Soldierlv]++;
                        PlayerInfo[playerid][Level]++;
                        SendClientMessage(playerid, COLOR_GREEN, "You have leveled up! Congradulations!");
                    }
                }
            }
        }
    }
}
I'm thinking it needs to return 1, but not sure. Anyone got an opinion? or a fix?
EDIT: returned with 1, Still nothing.
Reply


Messages In This Thread
Noob question, Levelup - by -Rebel Son- - 18.12.2011, 18:40
Re: Noob question, Levelup - by Norck - 18.12.2011, 18:49
Re: Noob question, Levelup - by -Rebel Son- - 18.12.2011, 18:53
Re: Noob question, Levelup - by FireCat - 18.12.2011, 18:57
Re: Noob question, Levelup - by -Rebel Son- - 18.12.2011, 19:01
Re: Noob question, Levelup - by FireCat - 18.12.2011, 19:42
Re: Noob question, Levelup - by -Rebel Son- - 18.12.2011, 20:56

Forum Jump:


Users browsing this thread: 1 Guest(s)