[HELP] Bug em Comando Simples!
#6

Isto deve resolver o seu problema:

pawn Код:
if (strcmp(cmd, "/adquirirnivel", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (gPlayerLogged[playerid] != 0)
            {
                if(PlayerInfo[playerid][pLevel] >= 0)
                {
                    new nxtlevel = PlayerInfo[playerid][pLevel]+1;
                    new infostring[256];
                    new expamount = PlayerInfo[playerid][pLevel]*2;
                    if (PlayerInfo[playerid][pExp] < expamount)
                    {
                        format(infostring, 256, "   Vocк precisa de %d pontos de respeito, vocк tem [%d] !",expamount,PlayerInfo[playerid][pExp]);
                        SendClientMessage(playerid, COLOR_GRAD1, infostring);
                        return 1;
                    }
                    else
                    {
                        format(string, sizeof(string), "~g~LEVEL adquirido~n~~w~voce estЃ agora nўvel %d", nxtlevel);
                        PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                        PlayerPlayMusic(playerid);
                        PlayerInfo[playerid][pLevel]++;
                        PlayerInfo[playerid][pExp] = 0;
                        PlayerInfo[playerid][gPupgrade] = PlayerInfo[playerid][gPupgrade]+2;
                        GameTextForPlayer(playerid, string, 5000, 1);
                        levelexp[playerid] = 4;
                        if(PlayerInfo[playerid][pLevel] >= 8) { levelexp[playerid] = 5; }
                        if(PlayerInfo[playerid][pLevel] >= 11) { levelexp[playerid] = 6; }
                        if(PlayerInfo[playerid][pLevel] >= 14) { levelexp[playerid] = 7; }
                        if(PlayerInfo[playerid][pLevel] >= 17) { levelexp[playerid] = 8; }
                    }
                }
                return 1;
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   Vocк nгo fez o Loggin !");
            }
        }
        return 1;
    }


Espero ter ajudado
Reply


Messages In This Thread
[HELP] Bug em Comando Simples! - by Coco-Marrom - 09.12.2010, 22:41
Re: [HELP] Bug em Comando Simples! - by abestado - 09.12.2010, 22:46
Re: [HELP] Bug em Comando Simples! - by [Ips]Guh - 09.12.2010, 22:56
Re: [HELP] Bug em Comando Simples! - by Coco-Marrom - 09.12.2010, 23:20
Re: [HELP] Bug em Comando Simples! - by abestado - 09.12.2010, 23:36
Re: [HELP] Bug em Comando Simples! - by rjjj - 10.12.2010, 11:50
Re: [HELP] Bug em Comando Simples! - by Coco-Marrom - 10.12.2010, 12:40

Forum Jump:


Users browsing this thread: 2 Guest(s)