[Plugin] [REL] pwncurl 0.1 (download websites with pawn) (help with win-compile needed!!)
#21

Heres a windows version with pre-built binaries but unfortunatly i have only been able to compile it in Visual Studio 2008, However it also contains the source which includes a make file which should work but i havent had a chance to test it yet

Quote:
Originally Posted by the ReadMe
For this to work you will need to place Binaries/curllib.dll and Binaries/openldap.dll in System32 or your servers plugin folder
Download
Reply
#22

Will this show a website in game?
Reply
#23

Quote:
Originally Posted by Connor(GTA24.NET)
Will this show a website in game?
IMPOSSIBILITY! This fetches data from a website and makes it possible to implement it into the script

Lets take my points system for example - if I wer to set up a website called, for example, http://www.undergroundgaming.net and I stored the points files in http://www.undergroundgaming.net/points/, then I could do this:
pawn Код:
format(string, sizeof(string), "[url]http://www.undergroundgaming.net/points/%s.txt"[/url], GetPlayerName(playerid))
and implement string into the fetcher. Then I could use the results as a new string.

EDIT: Oh gosh, forget SQL, I am using this once it hits Windows
Reply
#24

Edit: ok seem to work

As i'm unbanned i can now post this here:

******Translate(text[], from[], to[], size = sizeof text)
******TranslateEx(text[], from, to, size = sizeof text)

Example:
pawn Код:
printf("%s", ******Translate("Hello world!", "en", "fr"));
//output "Bonjour le monde!"

printf("%s", ******TranslateEx("Cool ca fonctionne", FRENCH, ENGLISH));
//output "Cool it works"
I'm aware of the unexpected results, such as ' being transformed into \u0026#39; and also accentization fucked. I will update soon.
Reply
#25

wow ! thank you Draco and Yom. So posible read a smiles or images from site ?
Reply
#26

Quote:
Originally Posted by [MG
mysan ]
wow ! thank you Draco and Yom. So posible read a smiles or images from site ?
Actually you can read from a site, but that won't be useful. Since you can't display them ingame .

- Draco
Reply
#27

Quote:

Actually you can read from a site, but that won't be useful. Since you can't display them ingame

Hmm... you right , this bad but it was good because text can be read from the site and posible use as Database. RESPECT !
Reply
#28

Nice idea, might be usefull for MySQL integration, makes it all alot faster I guess.

Ps. want a mirror?
Reply
#29

this plugin is still better than the http function cuz it can actually return values so you can use them in ex 1 cmd, and with http u need to make some global vars and change everithing in your script.
i tried to make a stock pwncurl get function using http() but it just doesn't return data while executing a public like ongamemodeinit etc... ;/
pwncurl does!
shame, on my windows 7 desktop it works , and om my win 7 laptio it doesn't work. bleh installed VS 2010 etc and nothing, even curllib for windows.
Reply
#30

Quote:
Originally Posted by RyDeR`
Посмотреть сообщение
This is better than the HTML plugin. With HTML you need to have a specific extention to get the info. Here you just give the name of the site and it gives you the source.
I think you mean HTTP function, it's not even a plugin...
Reply
#31

Quote:
Originally Posted by Calgon
Посмотреть сообщение
I think you mean HTTP function, it's not even a plugin...
Ah, yes I kinda messep up. Changed.
Reply
#32

that means we can open webpages on sa-mp server?
Reply
#33

Quote:
Originally Posted by Hitman-97-
Посмотреть сообщение
that means we can open webpages on sa-mp server?
No, but you can get the content on it.

And you should also check out SA:MP's native http() function
Reply
#34

So this is basically the same thing as HTTP();
Reply
#35

Quote:
Originally Posted by Zh3r0
Посмотреть сообщение
So this is basically the same thing as HTTP();
Yeah except that this was created way before someone even thought about making a HTTP!
Reply
#36

Is nice work
good work!!!!!!
I test this men thank you!!!!!
Reply
#37

Guys, you could better use the standard HTTP function from SAMP
Reply
#38

And how we can use the httpd function like pwncurl?
Reply
#39

https://sampwiki.blast.hk/wiki/HTTP
..
Reply
#40

That's interesting. And somebody explain in detail why?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)