Login Box Help - 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: Login Box Help (
/showthread.php?tid=360428)
Login Box Help -
Tuntun - 17.07.2012
Hello
i need some help....i need to know how create some text in login Box?
i mean Welcome To The Server
You Are ip:
Have A Good Day...
Re: Login Box Help -
RedJohn - 17.07.2012
This will show simple message without IP!
pawn Код:
public OnPlayerConnect(playerid)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Welcome", "Welcome To The Server\nHave A Good Day...", "OK", "");
return 1;
}
Re: Login Box Help -
XStormiest - 17.07.2012
pawn Код:
public OnPlayerConnect(playerid)
{
new string[256];
new ip[256];
GetPlayerIp(playerid,ip,sizeof(ip));
format(string,sizeof(string),"Welcome To The Server\nYour IP: %i\nHave A Good Day...",ip);
ShowPlayerDialog(playerid, WELCOME_DIALOG, DIALOG_STYLE_MSGBOX, "Welcome", string, "OK", "");
return 1;
}
and in the of script
pawn Код:
#define WELCOME_DIALOG 10
Re: Login Box Help -
Tuntun - 18.07.2012
i got error's please help...
Код:
C:\Documents and Settings\efa\My Documents\Drifter [0.3E]\gamemodes\Drifter.pwn(1091) : error 021: symbol already defined: "OnPlayerConnect"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Re: Login Box Help -
[A]ndrei - 18.07.2012
dont define OnPlayerConnect Maybe take off the
pawn Код:
#define WELCOME_DIALOG 10
or if your defining OnPlayerConnect DONT DEFINE IT.