[AJUDA] Warnings
#1

Quote:

G:\GameModes , Raros\VirtualWorld.pwn(9445) : warning 213: tag mismatch
G:\GameModes , Raros\VirtualWorld.pwn(11666) : warning 235: public function lacks forward declaration (symbol "BanLog")
G:\GameModes , Raros\VirtualWorld.pwn(17980) : warning 213: tag mismatch

3 Warnings

Atenзгo Os Erros Tгo Em Ordem de acordo com acima :

pawn Код:
PlayerInfo[playerid][pHelper] = 0;
Code Completo :

pawn Код:
PlayerInfo[playerid][pLevel] = 0;
    PlayerInfo[playerid][pAdmin] = 0;
    PlayerInfo[playerid][pHelper] = 0;
    PlayerInfo[playerid][pVIP] = 0;
    PlayerInfo[playerid][pVoto] = 0;
//  PlayerInfo[playerid][pOuro] = 0;
    PlayerInfo[playerid][pSocio] = 0;
    PlayerInfo[playerid][pFamilia] = 0;
    PlayerInfo[playerid][pLFamilia] = 0;
    PlayerInfo[playerid][gPupgrade] = 0;
    PlayerInfo[playerid][pConnectTime] = 0;
    PlayerInfo[playerid][pReg] = 0;
    PlayerInfo[playerid][pSex] = 0;
    PlayerInfo[playerid][pAge] = 0;
    PlayerInfo[playerid][pExp] = 0;
    PlayerInfo[playerid][pConta] = 0;
    PlayerInfo[playerid][pCrimes] = 0;
    PlayerInfo[playerid][pDeaths] = 0;
    PlayerInfo[playerid][pPhoneBook] = 0;
    PlayerInfo[playerid][pLottoNr] = 0;
    PlayerInfo[playerid][pFishes] = 0;
    PlayerInfo[playerid][pBiggestFish] = 0;
    PlayerInfo[playerid][pEmprego] = 0;
    PlayerInfo[playerid][pSalario] = 0;
    PlayerInfo[playerid][pHeadValue] = 0;
    PlayerInfo[playerid][pJailed] = 0;
    PlayerInfo[playerid][pJailTime] = 0;
    PlayerInfo[playerid][pMats] = 0;
    PlayerInfo[playerid][pDorgado] = 0;
    PlayerInfo[playerid][pDorgado2] = 0;
    PlayerInfo[playerid][pDoenca] = 0;
    PlayerInfo[playerid][pCreditos] = 0;
    PlayerInfo[playerid][pDrogas] = 0;
    PlayerInfo[playerid][pDrogas2] = 0;
    PlayerInfo[playerid][pDrogas3] = 0;
    PlayerInfo[playerid][pSafeDrogas] = 0;
    PlayerInfo[playerid][pSafeDrogas2] = 0;
    PlayerInfo[playerid][pSafeDrogas3] = 0;
    PlayerInfo[playerid][pLider] = 0;
    PlayerInfo[playerid][pMembro] = 0;
    PlayerInfo[playerid][pCargo] = 0;
    PlayerInfo[playerid][pContractTime] = 0;
    PlayerInfo[playerid][pDetSkill] = 0;
    PlayerInfo[playerid][pSexSkill] = 0;
    PlayerInfo[playerid][pBoxSkill] = 0;
    PlayerInfo[playerid][pLawSkill] = 0;
    PlayerInfo[playerid][pMechSkill] = 0;
    PlayerInfo[playerid][pNewsSkill] = 0;
    PlayerInfo[playerid][pDrogasSkill] = 0;
    PlayerInfo[playerid][pCookSkill] = 0;
    PlayerInfo[playerid][pFishSkill] = 0;
    PlayerInfo[playerid][pSHealth] = 0.0;
    PlayerInfo[playerid][pPos_x] = 2246.6;
    PlayerInfo[playerid][pPos_y] = -1161.9;
    PlayerInfo[playerid][pPos_z] = 1029.7;
    PlayerInfo[playerid][pInt] = 0;
    PlayerInfo[playerid][pLocal] = 255;
    PlayerInfo[playerid][pTeam] = 3;
    PlayerInfo[playerid][pSkin] = 293;
------------------------------------

pawn Код:
public BanLog(string[])
Code Completo :

pawn Код:
public BanLog(string[])
{
    new entry[128];
    format(entry, sizeof(entry), "%s\n",string);
    new File:hFile;
    hFile = fopen("Logs/ban.log", io_append);
    fwrite(hFile, entry);
    fclose(hFile);
}
stock fdplog(string[])
{
    new entry[128];
    format(entry, sizeof(entry), "%s\n",string);
    new File:hFile;
    hFile = fopen("Logs/fdp.log", io_append);
    fwrite(hFile, entry);
    fclose(hFile);
}
stock SmsLog(string[])
{
    new entry[128];
    format(entry, sizeof(entry), "%s\n",string);
    new File:hFile;
    hFile = fopen("Logs/sms.log", io_append);
    fwrite(hFile, entry);
    fclose(hFile);
}
stock NickLog(string[])
{
    new entry[128];
    format(entry, sizeof(entry), "%s\n",string);
    new File:hFile;
    hFile = fopen("Logs/nick.log", io_append);
    fwrite(hFile, entry);
    fclose(hFile);
}
--------------------------------------------

pawn Код:
format(var, 32, "HelperLevel=%d\n",PlayerInfo[playerid][pHelper]);fwrite(hFile, var);
Code Completo :

pawn Код:
public OnPlayerRegister(playerid, password[])
{
    if(IsPlayerConnected(playerid))
    {
            new string3[64];
            new playername3[MAX_PLAYER_NAME];
            GetPlayerName(playerid, playername3, sizeof(playername3));
            format(string3, sizeof(string3), "%s.ini", playername3);
            new File: hFile = fopen(string3, io_write);
            if (hFile)
            {
                strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
                new var[32];
                format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
                PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
                format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
                format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
                format(var, 32, "HelperLevel=%d\n",PlayerInfo[playerid][pHelper]);fwrite(hFile, var);
                format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pVIP]);fwrite(hFile, var);
                format(var, 32, "Voto=%d\n",PlayerInfo[playerid][pVoto]);fwrite(hFile, var);
                format(var, 32, "Familia=%d\n",PlayerInfo[playerid][pFamilia]);fwrite(hFile, var);
                format(var, 32, "LFamilia=%d\n",PlayerInfo[playerid][pLFamilia]);fwrite(hFile, var);
                format(var, 32, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
                format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
                format(var, 32, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
                format(var, 32, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
                format(var, 32, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var);
                format(var, 32, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
                format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
                format(var, 32, "Bank=%d\n",PlayerInfo[playerid][pConta]);fwrite(hFile, var);
                format(var, 32, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
                format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
                format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
                format(var, 32, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
                format(var, 32, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var);
                format(var, 32, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
                format(var, 32, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
                format(var, 32, "Emprego=%d\n",PlayerInfo[playerid][pEmprego]);fwrite(hFile, var);
                format(var, 32, "Paycheck=%d\n",PlayerInfo[playerid][pSalario]);fwrite(hFile, var);
                format(var, 32, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
                format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
                format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
                format(var, 32, "Materiais=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var);
                format(var, 32, "Maconha=%d\n",PlayerInfo[playerid][pDrogas]);fwrite(hFile, var);
                format(var, 32, "Cocaina=%d\n",PlayerInfo[playerid][pDrogas2]);fwrite(hFile, var);
                format(var, 32, "Crack=%d\n",PlayerInfo[playerid][pDrogas3]);fwrite(hFile, var);
                format(var, 32, "Lider=%d\n",PlayerInfo[playerid][pLider]);fwrite(hFile, var);
                format(var, 32, "Member=%d\n",PlayerInfo[playerid][pMembro]);fwrite(hFile, var);
                format(var, 32, "Rank=%d\n",PlayerInfo[playerid][pCargo]);fwrite(hFile, var);
                format(var, 32, "Char=%d\n",PlayerInfo[playerid][pSkin]);fwrite(hFile, var);
                format(var, 32, "ContractTime=%d\n",PlayerInfo[playerid][pContractTime]);fwrite(hFile, var);
                format(var, 32, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var);
                format(var, 32, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
                format(var, 32, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var);
                format(var, 32, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
                format(var, 32, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
                format(var, 32, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var);
                format(var, 32, "DrogasSkill=%d\n",PlayerInfo[playerid][pDrogasSkill]);fwrite(hFile, var);
                format(var, 32, "CookSkill=%d\n",PlayerInfo[playerid][pCookSkill]);fwrite(hFile, var);
                format(var, 32, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var);
                format(var, 32, "pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var);
                format(var, 32, "Team=%d\n",PlayerInfo[playerid][pTeam]);fwrite(hFile, var);
                format(var, 32, "PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
                format(var, 32, "House=%d\n",PlayerInfo[playerid][pPHousekey]);fwrite(hFile, var);
                format(var, 32, "Bizz=%d\n",PlayerInfo[playerid][pPbiskey]);fwrite(hFile, var);
                format(var, 32, "Spawn=%d\n",PlayerInfo[playerid][pSpawn]);fwrite(hFile, var);
                format(var, 32, "SafeMaconha=%d\n",PlayerInfo[playerid][pSafeDrogas]);fwrite(hFile, var);
                format(var, 32, "SafeCocaina=%d\n",PlayerInfo[playerid][pSafeDrogas2]);fwrite(hFile, var);
                format(var, 32, "SafeCrack=%d\n",PlayerInfo[playerid][pSafeDrogas3]);fwrite(hFile, var);
                format(var, 32, "NivelProcurado=%d\n",WantedPoints[playerid]);fwrite(hFile, var);
                format(var, 32, "SafeMateriais=%d\n",PlayerInfo[playerid][psMats]);fwrite(hFile, var);
                format(var, 32, "Socio=%d\n",PlayerInfo[playerid][pSocio]);fwrite(hFile, var);
                //format(var, 32, "Ouro=%d\n",PlayerInfo[playerid][pOuro]);fwrite(hFile, var);
                if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0))
Reply
#2

Erro 2 adicione isso junto contra as outras
forward BanLog(string[]);
Erro 3 tenta assim:
format(var, 32, "HelperLevel=%d\n",PlayerInfo[playerid][pHelper]),fwrite(hFile, var);
Reply
#3

Quote:
Originally Posted by Hiuship
Посмотреть сообщение
Erro 2 adicione isso junto contra as outras
forward BanLog(string[]);
Erro 3 tenta assim:
format(var, 32, "HelperLevel=%d\n",PlayerInfo[playerid][pHelper]),fwrite(hFile, var);
e o Primeiro ? :S


Edit :

Porra deu 36 Warnings e 7 Erros :S
Reply
#4

pawn Код:
forward BanLog(string[]);
Reply
#5

Quote:
Originally Posted by Gustavo_Araujo
Посмотреть сообщение
pawn Код:
forward BanLog(string[]);
Brigadгo ai e o 1є e o 3є Como qi fica ?


O 3є Deu em nada .
O 1є Ninguem falou nada e.e '-'


EDIT --- 1

Nгo ta dando pra dar +rep tenso
Reply
#6

o 3°,tente assim:
pawn Код:
format(var,32, "HelperLevel=%d\n",PlayerInfo[playerid][pHelper]);
fwrite(hFile, var);
Pelo menos aqui compilou sem erro.
e sobre o 1°,poste o seu
pawn Код:
new PlayerInfo...
Reply
#7

Quote:
Originally Posted by Gustavo_Araujo
Посмотреть сообщение
o 3°,tente assim:
e sobre o 1°,poste o seu
pawn Код:
new PlayerInfo...
pawn Код:
new PlayerInfo[MAX_PLAYERS][pInfo];
new pRoadblock[MAX_PLAYERS];
new pRoadCones[MAX_PLAYERS];
new pRoadgang[MAX_PLAYERS];
new pRoadgang2[MAX_PLAYERS];
new pRoadgang3[MAX_PLAYERS];
new pRoadgang4[MAX_PLAYERS];
Acho que й isso que vc pediu :S
Reply
#8

poste oque ta em cima dv ter algo assim:
enun pInfo
{
meio
)
Reply
#9

Quote:
Originally Posted by Hiuship
Посмотреть сообщение
poste oque ta em cima dv ter algo assim:
enun pInfo
{
meio
)
1є Ou 3є ?
Reply
#10

Voo Sair , Mas tarde eu volto ,
Espero que ate lб problema tenha sido resolvido .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)