SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 30/05/2012, 02:37 PM   #1
goku114
Huge Clucker
 
Join Date: Apr 2012
Posts: 219
Reputation: 9
Default [AJUDA] ERRINHO

pawn Code:
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 Code:
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.
goku114 is offline   Reply With Quote
Old 30/05/2012, 02:39 PM   #2
Delete_
High-roller
 
Delete_'s Avatar
 
Join Date: Mar 2011
Location: Gurupi - TO
Posts: 1,677
Reputation: 105
Default Re: [AJUDA] ERRINHO

pawn Code:
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;                        
}
__________________

Parei. Motivo: Faculdade.
Delete_ is offline   Reply With Quote
Old 30/05/2012, 02:40 PM   #3
'Duallity
Big Clucker
 
'Duallity's Avatar
 
Join Date: Apr 2012
Location: Grajaú-Ma
Posts: 188
Reputation: 8
Default Re: [AJUDA] ERRINHO

pawn Code:
return 1;

para
pawn Code:
return 0;
__________________
'Duallity is offline   Reply With Quote
Old 30/05/2012, 02:42 PM   #4
rjjj
Guest
 
Posts: n/a
Default Re: [AJUDA] ERRINHO

Faltou uma chave aqui :


Code:
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 .
  Reply With Quote
Old 30/05/2012, 02:49 PM   #5
goku114
Huge Clucker
 
Join Date: Apr 2012
Posts: 219
Reputation: 9
Default Re: [AJUDA] ERRINHO

agora deu um warning lose identification no return 1
goku114 is offline   Reply With Quote
Old 30/05/2012, 02:51 PM   #6
rjjj
Guest
 
Posts: n/a
Default Re: [AJUDA] ERRINHO

Quote:
Originally Posted by goku114 View Post
agora deu um warning lose identification no return 1

Basta organizar seu código :


pawn Code:
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 .
  Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[AJUDA]Um errinho aqui -' Edu33 Português/Portuguese 8 27/05/2012 01:56 PM
[AJUDA] Errinho aqui? guilhermegtu Português/Portuguese 7 20/09/2011 01:01 AM
[AJUDA] Ajudem Eu Com Um Errinho Aqui Galera ReDKiiL Português/Portuguese 4 28/04/2011 12:36 PM
[AJUDA]Mais Um Errinho ! ReDKiiL Português/Portuguese 4 26/04/2011 05:09 PM
[[Ajuda]]Apenas 1 errinho, me ajudem! [$]GhosTRydeR[$] Português/Portuguese 11 13/03/2011 09:55 PM


All times are GMT. The time now is 09:47 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.