IP of Player?
#5

Quote:
Originally Posted by clarencecuzz
Посмотреть сообщение
pawn Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    if(!IsPlayerAdmin(playerid) || AdminVariable[playerid] < 1) return 0;
    new IPSTRING[20], PlayersName[MAX_PLAYER_NAME];
    GetPlayerName(clickedplayerid, PlayersName, MAX_PLAYER_NAME);
    GetPlayerIp(clickedplayerid, IPSTRING, sizeof(IPSTRING));
    new string[50];
    format(string,sizeof(string),"%s | IP: %s",PlayersName, IPSTRING);
    SendClientMessage(playerid, 0xFFFF00FF, string);
    return 1;
}
NOTE: Untested
When i make that, i have 4 Errors:

error 055: start of function body without function header
error 010: invalid function or declaration
error 021: symbol already defined: "GetPlayerName"
error 021: symbol already defined: "format"
Reply


Messages In This Thread
IP of Player? - by Blackazur - 12.09.2012, 10:05
Re: IP of Player? - by clarencecuzz - 12.09.2012, 10:10
Re: IP of Player? - by Roach_ - 12.09.2012, 10:10
Re: IP of Player? - by RedJohn - 12.09.2012, 10:12
AW: Re: IP of Player? - by Blackazur - 12.09.2012, 10:16
Re: IP of Player? - by RedJohn - 12.09.2012, 10:18
Re: IP of Player? - by clarencecuzz - 12.09.2012, 10:20
AW: IP of Player? - by Blackazur - 12.09.2012, 10:21
Re: IP of Player? - by RedJohn - 12.09.2012, 10:22
Re: IP of Player? - by clarencecuzz - 12.09.2012, 10:22

Forum Jump:


Users browsing this thread: 4 Guest(s)