Empty line (Ladmin Adminscript)
#1

I have this problem when players join my server.

it's about the connecting message for players.

when the server starts without (Ladmin adminscript), you see it like this:



when the server starts with (Ladmin adminscript), you see it like this:



Don't pay attention to the connecting colors.

you see its the "empty line" above the connecting message.

does any one have a idea why this happens?
Reply
#2

SendClientMessage(playerid, AnyColor, " ");?
Reply
#3

Hmmm try deleting the *** Has joined lines in your gamemode, then run it with LAdmin
Reply
#4

Quote:
Originally Posted by GTA_Rules
Hmmm try deleting the *** Has joined lines in your gamemode, then run it with LAdmin
Huh? And why's that?

CTRL+F --> " ");
Reply
#5

Quote:

SendClientMessage(playerid, AnyColor, " ");?

I tried it, searched it all with ctrl F but didn't find anything like that.

Quote:

Hmmm try deleting the *** Has joined lines in your gamemode, then run it with LAdmin

i don't got *** front of joined message... only on disconnect player i got it, but disconnect message works perfect without any empty line above it.

Quote:

CTRL+F --> " ");

i searched letterly for " "); and " ") but didn't find anything like that... searched in gamemode and Ladmin.


---------------------------------------------------------------------------

This is what i got in my gamemode
Quote:

public OnPlayerConnect(playerid)
{
new pName[MAX_PLAYER_NAME];
new string[48];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s has joined the server.", pName);
SendClientMessageToAll(0x33AA33AA, string);

GetPlayerName(playerid, ConnectName, 30);

And this is what i got on Ladmin adminscript
Quote:

public OnPlayerConnect(playerid)
{
new PlayerName[MAX_PLAYER_NAME], string[256], file[256];
GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);

I didn't had this problem before i used Ladmin...

still thanx for helping guys... if someone got any other idea please let me know.
Reply
#6

BUMP!!!

still couldn't fix it, i study the whole script but no results at all.

anyone with an idea please let me know.

thanx
Reply
#7

Use this:

pawn Код:
new string[128];
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playername));
format(string, sizeof(string), "%s has joined the server.",playername);
SendClientMessageToAll(0x33AA33AA,string);
It works perfectly for me.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)