18.04.2013, 22:34
Troque Isto:
Por isto:
pawn Code:
stock SalvarConta(playerid)
{
DOF2_SetInt(GetarConta(playerid), "AdminLevel", PlayerInfo[playerid][pAdmin]);
DOF2_SetInt(GetarConta(playerid), "Org", PlayerInfo[playerid][pOrg]);
DOF2_SetInt(GetarConta(playerid), "Level", PlayerInfo[playerid][pLevel]);
DOF2_SetInt(GetarConta(playerid), "Morreu", PlayerInfo[playerid][Morreu]);
DOF2_SetInt(GetarConta(playerid), "Matou", GetPlayerScore(playerid));
DOF2_SetInt(GetarConta(playerid), "Dinheiro", GetPlayerMoney(playerid));
DOF2_SetInt(GetarConta(playerid), "VIP", PlayerInfo[playerid][pVip]);
DOF2_SetInt(GetarConta(playerid), "Logou", PlayerInfo[playerid][pLogou]);
DOF2_SetInt(GetarConta(playerid), "TempoVip", PlayerInfo[playerid][pTimeV]);
DOF2_SaveFile();
return 1;
}
PHP Code:
stock SalvarConta(playerid)
{
if ( !DOF2_FileExists ( GetarConta ( playerid ) ) ) DOF2_CreateFile ( GetarConta ( playerid ) ) ;
{
DOF2_SetInt ( GetarConta ( playerid ), "AdminLevel", PlayerInfo [ playerid ] [ pAdmin ] ) ;
DOF2_SetInt ( GetarConta ( playerid ), "Org", PlayerInfo [ playerid ] [ pOrg ] ) ;
DOF2_SetInt ( GetarConta ( playerid ), "Level", PlayerInfo [ playerid ] [ pLevel ] ) ;
DOF2_SetInt ( GetarConta ( playerid ), "Morreu", PlayerInfo [ playerid ] [ Morreu ] );
DOF2_SetInt ( GetarConta ( playerid ), "Matou", GetPlayerScore ( playerid ) ) ;
DOF2_SetInt ( GetarConta ( playerid ), "Dinheiro", GetPlayerMoney ( playerid ) ) ;
DOF2_SetInt ( GetarConta ( playerid ), "VIP", PlayerInfo [ playerid ] [ pVip ] ) ;
DOF2_SetInt ( GetarConta ( playerid ), "Logou", PlayerInfo [ playerid ] [ pLogou ] ) ;
DOF2_SetInt ( GetarConta ( playerid ), "TempoVip", PlayerInfo [ playerid ] [ pTimeV ] ) ;
DOF2_SaveFile ( ) ;
}
return 1;
}