[Ajuda] Alterar dono da casa
#1

Galera fiz um cmd de trocar nick ai o rjjj alterou e fez funfar ae ta , mas agora nгo quer
trocar o dono da casa e acabo perdendo a casa!
fiz uma stock pra alterar o dono mas nгo ta funfando ¬¬

pawn Code:
House_SetDono(playerid, HouseID)
{
    new HouseSlotFree, Name[24], Msg[100];
   
    GetPlayerName(playerid, Name, sizeof(Name));
   
    APlayerData[playerid][Houses][HouseSlotFree] = HouseID;
   
    AHouseData[HouseID][Owned] = true;
   
    format(AHouseData[HouseID][Owner], 50, Name);
   
    format(AHouseData[HouseID][HouseName], 100, "Casa %s's", Name);
   
    format(Msg, 128, "%s\nDono: %s\nLevel da casa: %i\n/entrar", AHouseData[HouseID][HouseName], AHouseData[HouseID][Owner], AHouseData[HouseID][HouseLevel]);
    UpdateDynamic3DTextLabelText(AHouseData[HouseID][DoorText], 0x008080FF, Msg);
   
    AHouseData[HouseID][Owner] = Name;
   
    PlayerFile_Save(playerid);
    return 1;
}
Reply
#2

Up !
Reply
#3

posta o cmd
Reply
#4

Posta o cmd e tbm a funзгo PlayerFile_Save(playerid);
Reply
#5

@edit Code retirado
Reply
#6

Up, Preciso muito !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)