Urlencode? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Urlencode? (
/showthread.php?tid=141325)
Urlencode? -
ziomal432 - 12.04.2010
I've founded this function on DracoBlue site, but it has bug and stops next functions :/
Nothing shows in console :/
http://dracoblue.net/dev/urlencode-in-pawn/141/
Re: Urlencode? -
ziomal432 - 13.04.2010
Refresh.
Re: Urlencode? -
ettans - 13.04.2010
pawn Код:
main()
{
printf("%s",urlencode("[url]http://www.sa-mp.com"[/url]));
print("Line 2");
}
Outputs:
Код:
http%3A%2F%2Fwww.sa-mp.com
Line 2
So yes, the function seems to be bugged, since it only replaces : with %3A and / with %2F.
Re: Urlencode? -
ziomal432 - 13.04.2010
Looks like I need to write my one.
Maybe I'll post her in useful functions.
Re: Urlencode? -
ziomal432 - 13.04.2010
You can remove this spam post.