Entгo, nгo sei qual sistema que fiz que agr qnd eu inicio o GM cria uma conta na pasta das contas com nome Ninguem, jб caзei o GM todo atrбs de resolver e atй agora nгo achei nada que crie essa conta e nгo tem nenhum FS ligado, como faзo pra ver o log do GM quando inicia, pra fazer tipo um debug e ver o que estб acontecendo pra criar a conta ? obg desde jб
|
stock SalvarArq( playerid ) { if( pInfo[ playerid ][ Logado ] == true ) { format( gFile, sizeof( gFile ), "Contas/%s.ini", PlayerName( playerid )); DOF2_SetInt( gFile, "Dinheiro", GetPlayerCash( playerid )); DOF2_SetInt( gFile, "ContaBanco", pInfo[ playerid ][ ContaBanco ] ); DOF2_SetInt( gFile, "Profissao", pInfo[ playerid ][ Prof ] ); DOF2_SetInt( gFile, "Sexo", pInfo[ playerid ][ Sexo ] ); DOF2_SetInt( gFile, "Exp", pInfo[ playerid ][ Exp ] ); DOF2_SetInt( gFile, "SegUP", pInfo[ playerid ][ SegUP ] ); DOF2_SetInt( gFile, "MinUP", pInfo[ playerid ][ MinUP ] ); DOF2_SetInt( gFile, "Level", pInfo[ playerid ][ Level ] ); DOF2_SetInt( gFile, "Gasolina", pInfo[ playerid ][ Gas ] ); DOF2_SetInt( gFile, "HabTTerrestre", pInfo[ playerid ][ HabTTerrestre ] ); DOF2_SetInt( gFile, "HabNNautica", pInfo[ playerid ][ HabNNautica ] ); DOF2_SetInt( gFile, "HabAAerea", pInfo[ playerid ][ HabAAerea ] ); DOF2_SetInt( gFile, "Procurado", GetPlayerWantedLevel( playerid )); DOF2_SetInt( gFile, "Preso", pInfo[ playerid ][ Preso ] ); DOF2_SetInt( gFile, "PresoE", pInfo[ playerid ][ PresoE ] ); DOF2_SetInt( gFile, "Cocaina", pInfo[ playerid ][ Pego_QtaCoca ] ); DOF2_SetInt( gFile, "Maconha", pInfo[ playerid ][ Pego_QtaMaco ] ); DOF2_SetInt( gFile, "Crack", pInfo[ playerid ][ Pego_QtaCrac ] ); DOF2_SetInt( gFile, "Cocaina", pInfo[ playerid ][ PT_Cocaina ] ); DOF2_SetInt( gFile, "Maconha", pInfo[ playerid ][ PT_Maconha ] ); DOF2_SetInt( gFile, "Crack", pInfo[ playerid ][ PT_Crack ] ); DOF2_SetInt( gFile, "ContratadoA", pInfo[ playerid ][ ContratadoA ] ); DOF2_SetInt( gFile, "Sequestrado", pInfo[ playerid ][ Sequestrado ] ); DOF2_SetInt( gFile, "SaiuSeq", pInfo[ playerid ][ SaiuSeq ] ); DOF2_SetInt( gFile, "TemGPS", pInfo[ playerid ][ Tem_GPS ] ); DOF2_SetInt( gFile, "TemRelogioUP", pInfo[ playerid ][ Tem_RelogioUP ] ); DOF2_SetInt( gFile, "VeiculoConce", pInfo[ playerid ][ Veiculo_Conce ] ); DOF2_SetInt( gFile, "CorRelogio", pInfo[ playerid ][ RelogioCor ] ); DOF2_SetInt( gFile, "RelogioONOFF", pInfo[ playerid ][ R_UP_ON_OFF ] ); DOF2_SetInt( gFile, "TemVelocimetro", pInfo[ playerid ][ Tem_Velocimetro ] ); DOF2_SetInt( gFile, "VeloONOFF", pInfo[ playerid ][ VelocimetroO_F ] ); DOF2_SetInt( gFile, "TemCura", pInfo[ playerid ][ Tem_Cura ] ); DOF2_SetInt( gFile, "Kit", pInfo[ playerid ][ Tem_Kit ] ); DOF2_SetInt( gFile, "Matou", pInfo[ playerid ][ fMatou ] ); DOF2_SetInt( gFile, "Morreu", pInfo[ playerid ][ fMorreu ] ); DOF2_SetInt( gFile, "Creditos", pInfo[ playerid ][ Celular_c ] ); // aInfo[ playerid ][ Programador ] = 0; aInfo[ playerid ][ Gerente ] = 0; aInfo[ playerid ][ Administrador ] = 0; aInfo[ playerid ][ Moderador ] = 0; aInfo[ playerid ][ Ajudante ] = 0; } } |
Foi eu sim, o sistema de e-mail, sу que pensei que fosse o sistema de e-mail e apaguei removendo o mesmo e ainda continua o problema, eu utilizo DOF2.
Cуdigo que salva as contas. |
Ve se nгo tem nenhum DOF2_CreateFile na OnGameModeInit.
Bota o titulo como "Ajudaaaaaaaaaaaaa" й contra as regras. E ninguйm vai vir aki com pressa pelo fato de ter muitos "a" |
stock SalvarArq( playerid )
{
if( pInfo[ playerid ][ Logado ] == true )
{
format( gFile, sizeof( gFile ), "Contas/%s.ini", PlayerName( playerid ));
DOF2_SetInt( gFile, "Dinheiro", GetPlayerCash( playerid ));
DOF2_SetInt( gFile, "ContaBanco", pInfo[ playerid ][ ContaBanco ] );
DOF2_SetInt( gFile, "Profissao", pInfo[ playerid ][ Prof ] );
DOF2_SetInt( gFile, "Sexo", pInfo[ playerid ][ Sexo ] );
DOF2_SetInt( gFile, "Exp", pInfo[ playerid ][ Exp ] );
DOF2_SetInt( gFile, "SegUP", pInfo[ playerid ][ SegUP ] );
DOF2_SetInt( gFile, "MinUP", pInfo[ playerid ][ MinUP ] );
DOF2_SetInt( gFile, "Level", pInfo[ playerid ][ Level ] );
DOF2_SetInt( gFile, "Gasolina", pInfo[ playerid ][ Gas ] );
DOF2_SetInt( gFile, "HabTTerrestre", pInfo[ playerid ][ HabTTerrestre ] );
DOF2_SetInt( gFile, "HabNNautica", pInfo[ playerid ][ HabNNautica ] );
DOF2_SetInt( gFile, "HabAAerea", pInfo[ playerid ][ HabAAerea ] );
DOF2_SetInt( gFile, "Procurado", GetPlayerWantedLevel( playerid ));
DOF2_SetInt( gFile, "Preso", pInfo[ playerid ][ Preso ] );
DOF2_SetInt( gFile, "PresoE", pInfo[ playerid ][ PresoE ] );
DOF2_SetInt( gFile, "Cocaina", pInfo[ playerid ][ Pego_QtaCoca ] );
DOF2_SetInt( gFile, "Maconha", pInfo[ playerid ][ Pego_QtaMaco ] );
DOF2_SetInt( gFile, "Crack", pInfo[ playerid ][ Pego_QtaCrac ] );
DOF2_SetInt( gFile, "Cocaina", pInfo[ playerid ][ PT_Cocaina ] );
DOF2_SetInt( gFile, "Maconha", pInfo[ playerid ][ PT_Maconha ] );
DOF2_SetInt( gFile, "Crack", pInfo[ playerid ][ PT_Crack ] );
DOF2_SetInt( gFile, "ContratadoA", pInfo[ playerid ][ ContratadoA ] );
DOF2_SetInt( gFile, "Sequestrado", pInfo[ playerid ][ Sequestrado ] );
DOF2_SetInt( gFile, "SaiuSeq", pInfo[ playerid ][ SaiuSeq ] );
DOF2_SetInt( gFile, "TemGPS", pInfo[ playerid ][ Tem_GPS ] );
DOF2_SetInt( gFile, "TemRelogioUP", pInfo[ playerid ][ Tem_RelogioUP ] );
DOF2_SetInt( gFile, "VeiculoConce", pInfo[ playerid ][ Veiculo_Conce ] );
DOF2_SetInt( gFile, "CorRelogio", pInfo[ playerid ][ RelogioCor ] );
DOF2_SetInt( gFile, "RelogioONOFF", pInfo[ playerid ][ R_UP_ON_OFF ] );
DOF2_SetInt( gFile, "TemVelocimetro", pInfo[ playerid ][ Tem_Velocimetro ] );
DOF2_SetInt( gFile, "VeloONOFF", pInfo[ playerid ][ VelocimetroO_F ] );
DOF2_SetInt( gFile, "TemCura", pInfo[ playerid ][ Tem_Cura ] );
DOF2_SetInt( gFile, "Kit", pInfo[ playerid ][ Tem_Kit ] );
DOF2_SetInt( gFile, "Matou", pInfo[ playerid ][ fMatou ] );
DOF2_SetInt( gFile, "Morreu", pInfo[ playerid ][ fMorreu ] );
DOF2_SetInt( gFile, "Creditos", pInfo[ playerid ][ Celular_c ] );
DOF2_SaveFile();
//
aInfo[ playerid ][ Programador ] = 0;
aInfo[ playerid ][ Gerente ] = 0;
aInfo[ playerid ][ Administrador ] = 0;
aInfo[ playerid ][ Moderador ] = 0;
aInfo[ playerid ][ Ajudante ] = 0;
}
return 1;
}
Nгo sei se vai resolver alguma coisa, mas tente esse cуdigo aqui
PHP код:
|