30.10.2013, 21:20
pawn Код:
static ActualizarCuenta(playerid){
if(Logueado[playerid] == 1){
new Float:health, Float:armour;
dini_IntSet(BaseDatos(playerid), "Dinero" ,GetPlayerMoney(playerid));
dini_IntSet(BaseDatos(playerid), "Nivel" ,GetPlayerScore(playerid));
dini_FloatSet(BaseDatos(playerid), "Vida" ,GetPlayerHealth(playerid, health));
dini_FloatSet(BaseDatos(playerid), "Chaleco" ,GetPlayerArmour(playerid, armour));
dini_IntSet(BaseDatos(playerid), "Administrador",Informacion[playerid][Administrador]);
dini_IntSet(BaseDatos(playerid), "Faccion" ,Informacion[playerid][Faccion]);
dini_IntSet(BaseDatos(playerid), "Sexo" ,Informacion[playerid][Sexo]);
dini_IntSet(BaseDatos(playerid), "Edad" ,Informacion[playerid][Edad]);
dini_IntSet(BaseDatos(playerid), "Cocaina" ,Informacion[playerid][Cocaina]);
dini_IntSet(BaseDatos(playerid), "Marihuana" ,Informacion[playerid][Marihuana]);
dini_IntSet(BaseDatos(playerid), "Medicina" ,Informacion[playerid][Medicina]);
dini_IntSet(BaseDatos(playerid), "Agonizando" ,Informacion[playerid][Agonizando]);
return 1;
}
return 1;
}