13.02.2013, 13:22
O problema nгo ta ai ele deve estar na parte que seta o dinheiro
@EDIT
Vocк ta atualizando os status do player?
faz isso:
Se funcionar o problema nгo ta ai mesmo.
@EDIT
Vocк ta atualizando os status do player?
faz isso:
pawn Код:
CallBack::SalvarPlayer ( playerid )
{
PlayerInfo[playerid][pDinheiro] = 1000;
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;
}