help with http func - 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: help with http func (
/showthread.php?tid=191169)
help with http func -
scott1 - 18.11.2010
Hi all,
i have an sendmail function who use http
but when i trie to send something if i put an "SPACE" > " " it just sende what was before it, not the rest.
When i use /n it's the same.
Some one can help me?
Thank you
Re: help with http func -
Lorenc_ - 18.11.2010
I really dont get what you said but try \t or ~t~ that means Tab, a space the size of the tabs space.
Re: help with http func -
scott1 - 18.11.2010
Hi,
here is my sendmail func
Код:
stock SendMail(playerid,reciever[], subject[], corps[])
{
new string[128];
format(string, sizeof(string), "MYWEBSITE/forgot.php?sender=%s&reciever=%s&subject=%s&message=%s",reciever,subject,corps);
HTTP(playerid, HTTP_GET, string, "", "MailResponse");
}
Код:
SendMail(playerid,email, "Motdepasseoubliй", string);
if i do
format(.....,"I am testing my sendmail");
i will receive an mail
with:
subjet:Motdepasseoubliй
mail: I
after the space the tesxt isn't send
if i do
format(.....,"Iamtestingmysendmail");
i will get
subjet:Motdepasseoubliй
mail: Iamtestingmysendmail
Re: help with http func -
scott1 - 22.11.2010
up, i need help
Re: help with http func -
Mauzen - 22.11.2010
You have to replace all spaces with %20
This is the url code for a space.
Re: help with http func -
legodude - 23.11.2010
and to do it correctly make a fun to replace all space's with + or with %20