[Ajuda] Rapidao
#1

Galera to batendo a cabeзa nesta parada, eu to com a grana 212 na mao saiu do server e olho no arquivo fica com grana 0 no arquivo .

Problema simples mas que ta me dando dor de cabaзa.

CODE
pawn Код:
//onde seta ele quuando registra
          PlayerInfo [ playerid ] [ pLevel ] = 1;
            PlayerInfo [ playerid ] [ pDinheiro ] += 10000;
            PlayerInfo [ playerid ] [ pAdmin ] = 0;
            GivePlayerMoney(playerid, 10000);

// Salvamento / Carregamento

CallBack::SalvarPlayer ( playerid )
{
     new file [ 50 ] , mauricio [ MAX_PLAYER_NAME ] ;
     GetPlayerName ( playerid , mauricio , sizeof ( mauricio ) ) ;
     format ( file , sizeof ( file ) , DESUSER, mauricio ) ;
     if(!DOF2_FileExists(file)) DOF2_CreateFile(file);
     DOF2_SetInt(file, "Level", PlayerInfo [ playerid ] [ pLevel ] );
     DOF2_SetInt(file, "Dinheiro", PlayerInfo [ playerid ] [ pDinheiro ] );
     DOF2_SetInt ( file , "AdminLevel" , PlayerInfo [ playerid ] [ pAdmin ] );
     DOF2_SetInt ( file , "NumeroTelefone" , PlayerInfo [ playerid ] [ TelefoneNum ] );
     GetPlayerSkin(PlayerInfo[playerid][pSkin]);
     
     GetPlayerPos (playerid, PlayerInfo[playerid][PosX], PlayerInfo[playerid][PosY], PlayerInfo[playerid][PosZ]);
     DOF2_SetFloat(file, "PosX", PlayerInfo[playerid][PosX]);
     DOF2_SetFloat(file, "PosY", PlayerInfo[playerid][PosY]);
     DOF2_SetFloat(file, "PosZ", PlayerInfo[playerid][PosZ]);
     DOF2_SaveFile ( ) ;
     return 1;
}

CallBack::CarregarPlayer ( playerid )
{
     new file [ 50 ] ;
     format ( file , sizeof ( file ) , DESUSER, PlayerInfo [ playerid ] [ pName ] ) ;
     PlayerInfo [ playerid ] [ pLevel ] = DOF2_GetInt ( file , "Level" ) ;
     PlayerInfo [ playerid ] [ pDinheiro ] = DOF2_GetInt ( file , "Dinheiro" ) ;
     PlayerInfo [ playerid ] [ pAdmin ] = DOF2_GetInt ( file , "AdminLevel" ) ;
     PlayerInfo [ playerid ] [ TelefoneNum ] = DOF2_GetInt ( file , "NumeroTelefone" );
     SetPlayerScore ( playerid , PlayerInfo [ playerid  ] [ pLevel ] ) ;
     GivePlayerMoney ( playerid , PlayerInfo [ playerid ] [ pDinheiro ] ) ;
     SetPlayerSkin(playerid,  PlayerInfo[playerid][pSkin]);
     return 1;
}
Reply


Messages In This Thread
Rapidao - by mau.tito - 13.02.2013, 12:30
Re: Rapidao - by MatheusAlcapone - 13.02.2013, 13:22
Re: Rapidao - by mau.tito - 13.02.2013, 20:24
Re: Rapidao - by Jumper. - 13.02.2013, 20:31
Re: Rapidao - by mau.tito - 13.02.2013, 20:34
Re: Rapidao - by Jumper. - 13.02.2013, 20:35
Re: Rapidao - by Sky™ - 13.02.2013, 20:36
Re: Rapidao - by mau.tito - 13.02.2013, 20:41
Re: Rapidao - by Jumper. - 13.02.2013, 20:51
Re: Rapidao - by VenoN - 13.02.2013, 21:04

Forum Jump:


Users browsing this thread: 1 Guest(s)