<?php
$nick = $_GET['nick'];
echo $nick;
<?
#define NomedaConta "Teste"
if (strcmp("/teste", cmdtext, true, 10) == 0)
{
new link[500];
format(link, sizeof(link), "http://localhost/ola.php?nick=%s", NomedaConta);
HTTP(playerid, HTTP_GET, link, "", "Resultado");
return 1;
}
//
forward Resultado(index, response_code, data[]);
public Resultado(index, response_code, data[])
{
new noticia[ 128 ];
if(response_code == 200)
{
format(noticia, sizeof(noticia), "%s", data);
SendClientMessage(index, 0xFFFFFFFF, noticia);
}
return 0x01;
}
<?php echo $_GET['nick']; ?>
if (strcmp("/teste", cmdtext, true, 10) == 0)
{
new link[500];
format(link, sizeof(link), "localhost/ola.php?nick=%s", NomedaConta);
HTTP(playerid, HTTP_GET, link, "", "Resultado");
return 1;
}
Originally Posted by Wiki SA-MP
The URL you want to request. (Without 'http://')
|
Alйm do que o Paulo falou:
pawn Код:
|