SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 27/04/2013, 02:35 PM   #1
AlucardSnow
Banned
 
Join Date: Jan 2013
Posts: 758
Reputation: 21
Default OnGameModeExit

Olha, ela não esta salvando a Skin quando utilizo o gmx.
Não cheguei a verificar as outras informações, mais devem estar igual a skin creiu eu.
Quando eu do /q e volto a skin e os outros dados estão de boa-'

Como que arrumo isso?

PHP Code:
public OnGameModeExit()
{
    static 
i;
    for(
GetMaxPlayers()-1> -1; --i)
    {
         if(
IsPlayerConnected(i))
         {
                 if ( !
DOF2_FileExists xPastaArquivos ) ) ) DOF2_CreateFile xPastaArquivos ) ) ;
                 {
                       
DOF2_SetInt xPastaArquivos ), "Level"GetPlayerScore) ) ;
                       
DOF2_SetInt xPastaArquivos ), "Dinheiro"GetPlayerMoney ) ) ;
                       
DOF2_SetInt xPastaArquivos ), "Admin Level"xPlayerInfo ] [ xAdmin ] ) ;
                       
DOF2_SetInt xPastaArquivos ), "Skin"GetPlayerSkin(i) ) ;
                       
DOF2_SaveFile();
                 }
         }
//         DOF2_Exit();
    
}
    
DOF2_Exit();
    return 
1;

O DOF2_Exit já foi colocado nesses 2 lugares que estão ai e sempre continua a mesma coisa.
Help my!
AlucardSnow is offline   Reply With Quote
Old 27/04/2013, 03:41 PM   #2
AlucardSnow
Banned
 
Join Date: Jan 2013
Posts: 758
Reputation: 21
Default Re: OnGameModeExit

Povo, ajuda ae porfavor.
AlucardSnow is offline   Reply With Quote
Old 27/04/2013, 04:16 PM   #3
StringBR
Big Clucker
 
StringBR's Avatar
 
Join Date: Apr 2013
Posts: 141
Reputation: 18
Default Re: OnGameModeExit

pawn Code:
public OnGameModeExit()
{
    static i;
    for(i = GetMaxPlayers()-1; i > -1; --i)
    {
         if(IsPlayerConnected(i))
         {
                 if ( !DOF2_FileExists ( xPastaArquivos ( i ) ) ) DOF2_CreateFile ( xPastaArquivos ( i ) ) ;
                 {
                       DOF2_SetInt ( xPastaArquivos ( i ), "Level", GetPlayerScore( i ) ) ;
                       DOF2_SetInt ( xPastaArquivos ( i ), "Dinheiro", GetPlayerMoney ( i ) ) ;
                       DOF2_SetInt ( xPastaArquivos ( i ), "Admin Level", xPlayerInfo [ i ] [ xAdmin ] ) ;
                       DOF2_SetInt ( xPastaArquivos ( i ), "Skin", GetPlayerSkin(i) ) ;
                       DOF2_SaveFile();
                 }
         }
    }
    DOF2_Exit();
    return 1;
}
StringBR is offline   Reply With Quote
Old 27/04/2013, 04:38 PM   #4
AlucardSnow
Banned
 
Join Date: Jan 2013
Posts: 758
Reputation: 21
Default Re: OnGameModeExit

Quote:
Originally Posted by StringBR View Post
pawn Code:
public OnGameModeExit()
{
    static i;
    for(i = GetMaxPlayers()-1; i > -1; --i)
    {
         if(IsPlayerConnected(i))
         {
                 if ( !DOF2_FileExists ( xPastaArquivos ( i ) ) ) DOF2_CreateFile ( xPastaArquivos ( i ) ) ;
                 {
                       DOF2_SetInt ( xPastaArquivos ( i ), "Level", GetPlayerScore( i ) ) ;
                       DOF2_SetInt ( xPastaArquivos ( i ), "Dinheiro", GetPlayerMoney ( i ) ) ;
                       DOF2_SetInt ( xPastaArquivos ( i ), "Admin Level", xPlayerInfo [ i ] [ xAdmin ] ) ;
                       DOF2_SetInt ( xPastaArquivos ( i ), "Skin", GetPlayerSkin(i) ) ;
                       DOF2_SaveFile();
                 }
         }
    }
    DOF2_Exit();
    return 1;
}
Adianto nada não.
Mais alguem tem uma solução?
Obrigado por ajudar String.
AlucardSnow is offline   Reply With Quote
Old 27/04/2013, 04:40 PM   #5
Don_Speed
High-roller
 
Don_Speed's Avatar
 
Join Date: Sep 2011
Location: Curitiba / PR
Posts: 3,272
Reputation: 266
Default Re: OnGameModeExit

Seta ele em outra variavel EX:
pawn Code:
new iskin = GetPlayerSkin(i);

Ai sim você usa o iskin na dof.
Don_Speed is offline   Reply With Quote
Old 27/04/2013, 04:56 PM   #6
zSuYaNw
Godfather
 
zSuYaNw's Avatar
 
Join Date: Apr 2010
Location: Santa Catarina
Posts: 6,840
Reputation: 672
Default Re: OnGameModeExit

pawn Code:
static i, e, str[80], n[24];
    for(i, e = GetMaxPlayers(); i != e; ++i)
    {
         if(IsPlayerConnected(i))
         {
                 format(str, 80, "%s.ini", (GetPlayerName(i, n, 24), n));
                 if ( !DOF2_FileExists ( str ( i ) ) ) DOF2_CreateFile ( str ( i ) ) ;
                 {
                       DOF2_SetInt ( str ( i ), "Level", GetPlayerScore( i ) ) ;
                       DOF2_SetInt ( str ( i ), "Dinheiro", GetPlayerMoney ( i ) ) ;
                       DOF2_SetInt ( str ( i ), "Admin Level", xPlayerInfo [ i ] [ xAdmin ] ) ;
                       DOF2_SetInt ( str ( i ), "Skin", GetPlayerSkin(i) ) ;
                       DOF2_SaveFile();
                 }
         }
//         DOF2_Exit();
    }
    DOF2_Exit();
    return 1;
}
zSuYaNw is offline   Reply With Quote
Old 27/04/2013, 05:23 PM   #7
AlucardSnow
Banned
 
Join Date: Jan 2013
Posts: 758
Reputation: 21
Default Re: OnGameModeExit

@Edit
Vo testar o Seu GARFIELD

O resto Deu certo não.

Garfiel, oia os erros ae:

PHP Code:
C:\Users\Cliente\Downloads\Jogo\GTA\Gms\Gm do 0\gamemodes\extreme.pwn(153) : warning 215expression has no effect
C
:\Users\Cliente\Downloads\Jogo\GTA\Gms\Gm do 0\gamemodes\extreme.pwn(157) : error 076syntax error in the expression, or invalid function call
C
:\Users\Cliente\Downloads\Jogo\GTA\Gms\Gm do 0\gamemodes\extreme.pwn(158) : error 012invalid function callnot a valid address
C
:\Users\Cliente\Downloads\Jogo\GTA\Gms\Gm do 0\gamemodes\extreme.pwn(158) : warning 215expression has no effect
C
:\Users\Cliente\Downloads\Jogo\GTA\Gms\Gm do 0\gamemodes\extreme.pwn(158) : error 001expected token";"but found ")"
C:\Users\Cliente\Downloads\Jogo\GTA\Gms\Gm do 0\gamemodes\extreme.pwn(158) : error 029invalid expressionassumed zero
C
:\Users\Cliente\Downloads\Jogo\GTA\Gms\Gm do 0\gamemodes\extreme.pwn(158) : fatal error 107too many error messages on one line

Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase


5 Errors

AlucardSnow is offline   Reply With Quote
Old 27/04/2013, 05:35 PM   #8
zSuYaNw
Godfather
 
zSuYaNw's Avatar
 
Join Date: Apr 2010
Location: Santa Catarina
Posts: 6,840
Reputation: 672
Default Re: OnGameModeExit

pawn Code:
static i, e, str[80], n[24];
    for(i, e = GetMaxPlayers(); i != e; ++i)
    {
         if(IsPlayerConnected(i))
         {
                 format(str, 80, "%s.ini", (GetPlayerName(i, n, 24), n));
                 
                 if ( !DOF2_FileExists ( str ( i ) ) ) DOF2_CreateFile ( str ( i ) ) ;
                 
                 DOF2_SetInt ( str , "Level", GetPlayerScore( i ) ) ;
                 DOF2_SetInt ( str , "Dinheiro", GetPlayerMoney ( i ) ) ;
                 DOF2_SetInt ( str , "Admin Level", xPlayerInfo [ i ] [ xAdmin ] ) ;
                 DOF2_SetInt ( str , "Skin", GetPlayerSkin(i) ) ;
                 DOF2_SaveFile();
         }
    }
    DOF2_Exit();
    return 1;
}
zSuYaNw is offline   Reply With Quote
Old 27/04/2013, 05:42 PM   #9
AlucardSnow
Banned
 
Join Date: Jan 2013
Posts: 758
Reputation: 21
Default Re: OnGameModeExit

Agora tem 4 erros.

PHP Code:
C:\Users\Cliente\Downloads\Jogo\GTA\Gms\Gm do 0\gamemodes\extreme.pwn(153) : warning 215expression has no effect
C
:\Users\Cliente\Downloads\Jogo\GTA\Gms\Gm do 0\gamemodes\extreme.pwn(159) : error 012invalid function callnot a valid address
C
:\Users\Cliente\Downloads\Jogo\GTA\Gms\Gm do 0\gamemodes\extreme.pwn(159) : warning 215expression has no effect
C
:\Users\Cliente\Downloads\Jogo\GTA\Gms\Gm do 0\gamemodes\extreme.pwn(159) : error 001expected token";"but found ")"
C:\Users\Cliente\Downloads\Jogo\GTA\Gms\Gm do 0\gamemodes\extreme.pwn(159) : error 029invalid expressionassumed zero
C
:\Users\Cliente\Downloads\Jogo\GTA\Gms\Gm do 0\gamemodes\extreme.pwn(159) : fatal error 107too many error messages on one line 
Eu tentei resolver mais não consegui.
AlucardSnow is offline   Reply With Quote
Old 27/04/2013, 05:43 PM   #10
zSuYaNw
Godfather
 
zSuYaNw's Avatar
 
Join Date: Apr 2010
Location: Santa Catarina
Posts: 6,840
Reputation: 672
Default Re: OnGameModeExit

Por favor, mande a linha 159
zSuYaNw is offline   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
OnGameModeExit marquezsanchez Scripting Help 4 12/09/2012 05:54 PM
OnGameModeExit(); NeroX98 Scripting Help 6 10/06/2012 10:50 AM
[Bug] OnGameModeExit scottyishere Help Archive 2 14/12/2010 12:21 PM
OnGameModeExit GaGlets(R) Help Archive 4 27/11/2010 11:55 PM


All times are GMT. The time now is 01:12 AM.


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