[AYUDA]:ї Como crear un sistema de Paнses ?
#2

Creo yo que podrнa ser asн:

pawn Код:
stock GetPlayerSiglasCountry(playerid){
    new IP[32], string[128];
    GetPlayerIp(playerid, IP, sizeof(IP));
    format(string, sizeof(string), "ipinfo.io/%s/country", IP);
    HTTP(playerid, HTTP_GET, string, "", "MyHttpResponse");
}
forward MyHttpResponse(index, response_code, data[]);
public MyHttpResponse(index, response_code, data[]){
    if(response_code == 200){
        printf("%s", data);
    }
}
devolverб en MyHttpResponse la sigla del paнs del cual es el jugador.
Reply


Messages In This Thread
[AYUDA]:ї Como crear un sistema de Paнses ? - by Sonico - 04.01.2015, 23:20
Respuesta: [AYUDA]:ї Como crear un sistema de Paнses ? - by Zume - 04.01.2015, 23:37

Forum Jump:


Users browsing this thread: 1 Guest(s)