30.04.2011, 18:17
Hello,
I'm trying to make a command 'myinfo' that will show a player his/her info. Right now i'm just trying to show the players IP. Is there anyway I can have a string in it for my "GetIp" stock?
Thanks!
I'm trying to make a command 'myinfo' that will show a player his/her info. Right now i'm just trying to show the players IP. Is there anyway I can have a string in it for my "GetIp" stock?
Thanks!
pawn Код:
CMD:myinfo(playerid, params[])
{
ShowPlayerDialog(playerid, DIALOG_MYINFO, DIALOG_STYLE_MSGBOX, "Player Info", "Your IP: %s", "Finished", "Cancel");
}
stock GetIp(playerid)
{
new Ip[MAX_PLAYER_NAME];
GetPlayerIp(playerid, Ip, sizeof(Ip));
return Ip;
}