Quote:
Originally Posted by HellSphinX
That would give an error undefined symbol string.
pawn Код:
new ip[64], string[128]; GetPlayerIp(playerid, ip, sizeof(ip)); format(string, sizeof(string), "Your IP Address is: %s", ip); ShowPlayerDialog(playerid, 1, DIALOIG_STYLE_MSGBOX, "IP Info", string, "Ok", "");
|
As you probably noticed, he only gave us a part of the code, meaning he already has string defined somewhere, probably on the top of the gamemode... All he asked for was to make it appear in a dialog.
Also I suggest an unique dialog that you don't use anywhere. So I hope 1 is not used, lol.