[Ajuda] GetPlayerIp - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] GetPlayerIp (
/showthread.php?tid=469917)
GetPlayerIp -
Zivo - 15.10.2013
Pessoal, eu fiz isso:
Na public
OnPlayerConnect
pawn Код:
new IP[16], Str[20], Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
GetPlayerIp(playerid, IP, 16);
format(Str, sizeof(Str), "Nome: %s || IP: %s", Name, IP);
print(Str);
Com o intuito de aparecer o meu IP certo.. Poxa, mas olha o que aparece:
Re: GetPlayerIp -
Locky_ - 15.10.2013
Aumenta o valor de
Str, de
20 para
50.
Re: GetPlayerIp -
Zivo - 15.10.2013
Obrigado, deu certo
+Rep
Respuesta: GetPlayerIp -
ipsBruno - 15.10.2013
Deixa mais otimizada, faзa:
pawn Код:
static szString[MAX_PLAYER_NAME + 30];
printf("Nome: %s IP: %s", (GetPlayerName(playerid, szString, MAX_PLAYER_NAME), szString), (GetPlayerIp(playerid, szString, MAX_PLAYER_NAME), szString));
Abraзos
Re: GetPlayerIp -
Zivo - 15.10.2013
Bgd tb Bruno rs