SA-MP Forums Archive
GetPlayerIP - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GetPlayerIP (/showthread.php?tid=591077)



GetPlayerIP - Ryan50 - 07.10.2015

Код:
GetPlayerIp(playerid, IP[playerid], 16);
Код:
(95) : error 017: undefined symbol "IP"
(95) : warning 215: expression has no effect
(95) : error 001: expected token: ";", but found "]"
(95) : error 029: invalid expression, assumed zero
(95) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.



Re: GetPlayerIP - d1git - 07.10.2015

PHP код:
new temp[16]; GetPlayerIp(playeridtempsizeof(temp)), printf("Player IP: %s"temp); 



Re: GetPlayerIP - Ryan50 - 07.10.2015

Quote:
Originally Posted by d1git
Посмотреть сообщение
PHP код:
new temp[MAX_PLAYER_NAME 1]; GetPlayerName(playeridtempsizeof(temp)), printf("Player Name: %s"temp); 
i updated the post now. IP errors.


Re: GetPlayerIP - Dusan01 - 07.10.2015

use it like this:
PHP код:
new plrIP[16];
GetPlayerIp(playeridplrIPsizeof(plrIP));
printf("Player IP: %s"plrIP);