1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

How can i get SkinData from any username on Database?

Discussion in 'Development' started by LewBr, Oct 20, 2017.

  1. LewBr

    LewBr Zombie

    Messages:
    385
    GitHub:
    lewbr
    I want to get the SkinData from a user and set to a fake player but this code doens't work bacause of a string:
    [nome] is the name of the player on database.
    PHP:
        public function getTop1Abates(){
            
    $result $this->provider->db->query("SELECT * FROM `sw_perfil` ORDER BY `vitimas` DESC ");
            return 
    $result;
        }
    PHP:
    $rank1 $this->getTop1Abates();
    $top1 $rank1['nome'];
    $ola $top1->getSkinData();
    $nome base64_encode($ola);
    $skinPk->skin = new Skin("Standard_Custom"base64_decode($nome));
     
    Last edited: Oct 20, 2017
  2. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    $top1 is a string most likely, so $top1->getSkinData() is not a valid function
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.