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();
}
DOF2_Exit();
return 1;
}
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;
}
pawn Код:
|
new iskin = GetPlayerSkin(i);
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;
}
C:\Users\Cliente\Downloads\Jogo\GTA\Gms\Gm do 0\gamemodes\extreme.pwn(153) : warning 215: expression has no effect
C:\Users\Cliente\Downloads\Jogo\GTA\Gms\Gm do 0\gamemodes\extreme.pwn(157) : error 076: syntax error in the expression, or invalid function call
C:\Users\Cliente\Downloads\Jogo\GTA\Gms\Gm do 0\gamemodes\extreme.pwn(158) : error 012: invalid function call, not a valid address
C:\Users\Cliente\Downloads\Jogo\GTA\Gms\Gm do 0\gamemodes\extreme.pwn(158) : warning 215: expression has no effect
C:\Users\Cliente\Downloads\Jogo\GTA\Gms\Gm do 0\gamemodes\extreme.pwn(158) : error 001: expected token: ";", but found ")"
C:\Users\Cliente\Downloads\Jogo\GTA\Gms\Gm do 0\gamemodes\extreme.pwn(158) : error 029: invalid expression, assumed zero
C:\Users\Cliente\Downloads\Jogo\GTA\Gms\Gm do 0\gamemodes\extreme.pwn(158) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
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;
}
C:\Users\Cliente\Downloads\Jogo\GTA\Gms\Gm do 0\gamemodes\extreme.pwn(153) : warning 215: expression has no effect
C:\Users\Cliente\Downloads\Jogo\GTA\Gms\Gm do 0\gamemodes\extreme.pwn(159) : error 012: invalid function call, not a valid address
C:\Users\Cliente\Downloads\Jogo\GTA\Gms\Gm do 0\gamemodes\extreme.pwn(159) : warning 215: expression has no effect
C:\Users\Cliente\Downloads\Jogo\GTA\Gms\Gm do 0\gamemodes\extreme.pwn(159) : error 001: expected token: ";", but found ")"
C:\Users\Cliente\Downloads\Jogo\GTA\Gms\Gm do 0\gamemodes\extreme.pwn(159) : error 029: invalid expression, assumed zero
C:\Users\Cliente\Downloads\Jogo\GTA\Gms\Gm do 0\gamemodes\extreme.pwn(159) : fatal error 107: too many error messages on one line