SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 06/12/2018, 06:23 AM   #31
SyS
High-roller
 
SyS's Avatar
 
Join Date: Oct 2015
Posts: 2,030
Reputation: 493
Default Re: PawnScraper

New Version (v0.1.1)
https://github.com/Sreyas-Sreelal/pa...ases/tag/0.1.1

Changes
  • Removed pawn destructors,users have to use Delete functions manually.
  • Fixed crash due to encoding issues.
SyS is offline   Reply With Quote
Old 08/12/2018, 05:05 PM   #32
Amagida
Little Clucker
 
Join Date: Oct 2017
Posts: 31
Reputation: 14
Default Re: PawnScraper

Quote:
Originally Posted by SyS View Post
Seems like the openssl crate wont statically link libssl i will look into a solution..While you have to install openssl libs in your server using any package manager or manually for now.
I can't do this, because its just game host. discord-connector uses libssl as i know, but i can use it.
Amagida is offline   Reply With Quote
Old 08/12/2018, 05:18 PM   #33
ball
Huge Clucker
 
ball's Avatar
 
Join Date: Jul 2012
Location: Poznan, Poland
Posts: 285
Reputation: 33
Default Re: PawnScraper

Thanks for yt2mp3 solution. How to get song time duration? I tried the same way as title, but it doesn't work, it gives me null string.
ball is offline   Reply With Quote
Old 09/12/2018, 07:29 AM   #34
SyS
High-roller
 
SyS's Avatar
 
Join Date: Oct 2015
Posts: 2,030
Reputation: 493
Default Re: PawnScraper

Quote:
Originally Posted by ball View Post
Thanks for yt2mp3 solution. How to get song time duration? I tried the same way as title, but it doesn't work, it gives me null string.
Duration can be scraped easily.The html of site is
HTML Code:
<div class="col-md-9">
     <p>
         <b>Title of Song</b>
     </p>
     <p>
          <b>Duration:</b> 00:03:18
      </p>
</div>
We can use selector like this
PHP Code:
new 
    
Selector:DurationSelector ParseSelector(".col-md-9>p"),
    
Duration[30];

GetNthElementText(html,DurationSelector,1,Duration);//second occurrence so n=1
strmid(Duration,Duration,10sizeof Duration);//remove the Text "Duration: "
DeleteSelector(DurationSelector); 
Then parse it according to your needs.

Last edited by SyS; 15/12/2018 at 05:29 AM.
SyS is offline   Reply With Quote
Old 16/12/2018, 03:50 AM   #35
SyS
High-roller
 
SyS's Avatar
 
Join Date: Oct 2015
Posts: 2,030
Reputation: 493
Default Re: PawnScraper

Quote:
Originally Posted by Amagida View Post
I can't do this, because its just game host. discord-connector uses libssl as i know, but i can use it.
Maybe your server is using older linux.Can you try this build.
https://github.com/Sreyas-Sreelal/pa...x86-Ubuntu.zip
It's compiled on Ubuntu 14.04 with older openssl (1.0) and glibc
SyS is offline   Reply With Quote
Old 16/12/2018, 06:08 AM   #36
ipsLuan
High-roller
 
ipsLuan's Avatar
 
Join Date: Feb 2013
Location: Ilhéus, BA
Posts: 3,787
Reputation: 290
Default Re: PawnScraper

Good job.
__________________
A fé na vitória tem que ser inabalável.


Procurando um programador? Achou! Contato através de MP.
ipsLuan is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 03:45 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.