a_http question - 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)
+--- Thread: a_http question (
/showthread.php?tid=482164)
a_http question -
mrxqware - 19.12.2013
Dear guys and girls,
I've got a question. Could anyone help me please? Thank you all for helping me lately.
I'm trying to post/get using this function:
Код:
if(strcmp(cmd, "/hello", true) == 0)
{
HTTP(playerid, HTTP_GET, "website.com/hello.php?=USERNAMEHERE", "", "MyHttpResponse");
return 1;
}
Is there a way to get the player's name here 'USERNAMEHERE'?
Re: a_http question -
tyler12 - 19.12.2013
pawn Код:
new url[64],n[24];
GetPlayerName(playerid,n,24);
format(url,64,"website.com/hello.php?=%s",n);
HTTP(playerid, HTTP_GET, url, "", "MyHttpResponse");