SA-MP Forums Archive
[AJUDA] ERRINHO - 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] ERRINHO (/showthread.php?tid=346894)



[AJUDA] ERRINHO - goku114 - 30.05.2012

pawn Код:
public OnPlayerDisconnect(playerid, reason)
//registro
if(INI_Open(ObterINI(playerid))) {

        INI_WriteInt("Score",PlayerInfo[playerid][pScore]);
        INI_WriteInt("Dinheiro",GetPlayerMoney(playerid));
        INI_WriteInt("Admin",PlayerInfo[playerid][pAdmin]);
        INI_WriteInt("Skin",GetPlayerSkin(playerid));
        INI_WriteInt("Procura",PlayerInfo[playerid][pWanted]);
        INI_Save();
        INI_Close();
    }
    return 1;                         AQUI TA DANDO O PROBLEM '-'
}
ESSE E O ERRO

pawn Код:
I:\Documents and Settings\Administrador\Desktop\GM\gamemodes\GM.pwn(124) : error 010: invalid function or declaration
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.



Re: [AJUDA] ERRINHO - Delete_ - 30.05.2012

pawn Код:
public OnPlayerDisconnect(playerid, reason)
//registro
if(INI_Open(ObterINI(playerid))) {

        INI_WriteInt("Score",PlayerInfo[playerid][pScore]);
        INI_WriteInt("Dinheiro",GetPlayerMoney(playerid));
        INI_WriteInt("Admin",PlayerInfo[playerid][pAdmin]);
        INI_WriteInt("Skin",GetPlayerSkin(playerid));
        INI_WriteInt("Procura",PlayerInfo[playerid][pWanted]);
        INI_Save();
        INI_Close();
    }
    return 0;                        
}



Re: [AJUDA] ERRINHO - 'Duallity - 30.05.2012

pawn Код:
return 1;
para
pawn Код:
return 0;



Re: [AJUDA] ERRINHO - rjjj - 30.05.2012

Faltou uma chave aqui :


Код:
public OnPlayerDisconnect(playerid, reason)
{//registro
if(INI_Open(ObterINI(playerid))) {

        INI_WriteInt("Score",PlayerInfo[playerid][pScore]);
        INI_WriteInt("Dinheiro",GetPlayerMoney(playerid));
        INI_WriteInt("Admin",PlayerInfo[playerid][pAdmin]);
        INI_WriteInt("Skin",GetPlayerSkin(playerid));
        INI_WriteInt("Procura",PlayerInfo[playerid][pWanted]);
        INI_Save();
        INI_Close();
    }
    return 1;
}


Espero ter ajudado .


Re: [AJUDA] ERRINHO - goku114 - 30.05.2012

agora deu um warning lose identification no return 1


Re: [AJUDA] ERRINHO - rjjj - 30.05.2012

Quote:
Originally Posted by goku114
Посмотреть сообщение
agora deu um warning lose identification no return 1
Basta organizar seu cуdigo :


pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    if(INI_Open(ObterINI(playerid)))
    {
        INI_WriteInt("Score",PlayerInfo[playerid][pScore]);
        INI_WriteInt("Dinheiro",GetPlayerMoney(playerid));
        INI_WriteInt("Admin",PlayerInfo[playerid][pAdmin]);
        INI_WriteInt("Skin",GetPlayerSkin(playerid));
        INI_WriteInt("Procura",PlayerInfo[playerid][pWanted]);
        INI_Save();
        INI_Close();
    }
    return 1;
}


Espero ter ajudado .