[Ajuda] FS SA-MP
#1

Qual utilidade dessa Funзгo ?? Abaixo o Fs com a funзгo"
PHP код:
#include <a_samp>
#include <a_http>
forward MyHttpResponse(indexresponse_codedata[]);
//------------------------------------------------
public OnFilterScriptInit()
{
    print(
"\n--HTTP Test Loaded.\n");
    return 
1;
}
//------------------------------------------------
public MyHttpResponse(indexresponse_codedata[])
{
    new 
showdata[256+1];
    
format(showdata256"Index: %d ResponseCode: %d Data: %s"indexresponse_codedata);
    
SendClientMessage(index0xFFFFFFFFshowdata);
}
//------------------------------------------------
public OnPlayerCommandText(playeridcmdtext[])
{
    new 
cmd[256+1];
    if(
strcmp("/httptest"cmdtrue) == 0)
    {
        
HTTP(playeridHTTP_GET"sa-mp.com/return.txt""""MyHttpResponse");
        return 
1;
    }
    
    return 
0;

Reply


Messages In This Thread
FS SA-MP - by Holl - 01.08.2015, 05:07
Re: FS SA-MP - by Lуs - 01.08.2015, 05:59

Forum Jump:


Users browsing this thread: 1 Guest(s)