SA-MP Forums Archive
[AJUDA] Na Includ do DraKiNs - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] Na Includ do DraKiNs (/showthread.php?tid=268189)



[AJUDA] Na Includ do DraKiNs - Gabriel Duarte - 11.07.2011

Estou usando a includ do DraKiNs no meu GM mas da os seguintes erros e warnings

Код:
C:\Users\Gabriel\Downloads\pawno\include\vip.inc(20) : warning 217: loose indentation
C:\Users\Gabriel\Downloads\pawno\include\vip.inc(20) : error 017: undefined symbol "_iMonth"
C:\Users\Gabriel\Downloads\pawno\include\vip.inc(21) : error 017: undefined symbol "_iYear"
C:\Users\Gabriel\Downloads\pawno\include\vip.inc(23) : warning 217: loose indentation
C:\Users\Gabriel\Downloads\pawno\include\vip.inc(23) : error 017: undefined symbol "_iYear"
C:\Users\Gabriel\Downloads\pawno\include\vip.inc(25) : error 017: undefined symbol "_iYear"
C:\Users\Gabriel\Downloads\pawno\include\vip.inc(33) : error 079: inconsistent return types (array & non-array)
C:\Users\Gabriel\Downloads\pawno\include\vip.inc(49) : error 018: initialization data exceeds declared size
C:\Users\Gabriel\Downloads\pawno\include\vip.inc(77) : error 079: inconsistent return types (array & non-array)
Aqui й o link dele com as linhas: http://pastebin.com/h3En92n7


Alguem sabe arrumar ?


Re: [AJUDA] Na Includ do DraKiNs - RockFire - 11.07.2011

http://pastebin.com/L97Ep96f


Re: [AJUDA] Na Includ do DraKiNs - rjjj - 11.07.2011

Arrumei pra vocк isto deve resolver o seu problema .



pawn Код:
/*
    @Project: Save and Get VIP With Dini
    @Credits: DraKiNs and DracoBlue (in Dini)
    @Date: 03/06/200xB
    @Release: 29/06/200xB
    @Site: http://www.ips-team.blogspot.com
*/


//================ [ Funзхes Vip Salvбvel ] ===================================

stock getDiasVip(sPlayer[])                    // Exemplo: if(getDiasVip("DraKiNs.ini")) print("drakisn й vip");
{
    new
        iYear_,
        iMonth_,
        _iDay;

    new
        iDay_   =   dini_Int(sPlayer, "Dia"),
        _iMonth  =   dini_Int(sPlayer, "Mes"),
        _iYear  =  dini_Int(sPlayer, "Ano");

    getdate(_iYear, _iMonth, iDay_);

    return (iYear_ == _iYear && _iMonth == iMonth_ && iDay_ == _iDay);
}


stock setDiasVip(iDias,sPlayer[])                //Exemplo: setDiasVip(20,"DraKiNs.ini");  (20 dias de vip para drakins)
{
    new Year, Month, Day;
    getdate(Year, Month, Day);
    return giveDias(Day, Month, Year,iDias,sPlayer);
}

// =============== [ Funзгo para fazer as funзхes de vips] =================
stock giveDias(iDia,iMes,iAno,iDias,sPlayer[])
{
    new
        iMeses[] =
        {
            1,
            2,
            4,
            6,
            8,
            9,
            0xB
        },
        bool:iMesAtual = false;

    iDia += iDias;
    if(iDia > 0x1E) {
        iVoltar:
        for(new i; i < sizeof(iMes); ++i) {
            if(iMes == iMeses[i]) {
                iMesAtual = true;
            }
        }
    }
    if(iMesAtual) {
        iMes++;
        iDia =- 0x1F;
        if(iDia > 0x1F) {
            goto iVoltar;
        }
    }
    else if(iDia > 0x1F) {
        iMes++;
        iDia =- 0x1F;
        if(iDia > 0x1F) {
            goto iVoltar;
        }
        iMesAtual = false;
    }
    return dini_IntSet(sPlayer,"Dia",iDia), dini_IntSet(sPlayer,"Mes",iMes), dini_IntSet(sPlayer,"Ano",iAno), true;
}


Espero ter ajudado .


Re: [AJUDA] Na Includ do DraKiNs - Gabriel Duarte - 11.07.2011

Vlw ai gente funciono direitinho