SA-MP Forums Archive
HTTP_POST - 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: HTTP_POST (/showthread.php?tid=173092)



HTTP_POST - vection - 01.09.2010

pawn Код:
new giveplayer[MAX_PLAYER_NAME];
            GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
            new string[256];
            format(string, sizeof(string), "%s", giveplayer);
            HTTP(playerid, HTTP_POST, "localhost/s.ini", string);
Why its not working? its didnt post the player name in this file.


Re: HTTP_POST - Calgon - 01.09.2010

You can't just post contents to an ini file and expect it to work.

Read this. Unless that ini executed code to parse the variables (which probably isn't possible), you can't use HTTP to post, to save user stats.

Use one of these includes for ini-saving:
http://dracoblue.net/download/dini-16/35/ (Dini)
https://sampforum.blast.hk/showthread.php?tid=58458 (SII)


Re: HTTP_POST - vection - 01.09.2010

Ok got you.