Login Box Help
#1

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...
Reply
#2

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;
}
Reply
#3

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
Reply
#4

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.
Reply
#5

dont define OnPlayerConnect Maybe take off the
pawn Код:
#define WELCOME_DIALOG 10
or if your defining OnPlayerConnect DONT DEFINE IT.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)