HTTP_POST
#1

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.
Reply
#2

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)
Reply
#3

Ok got you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)