SA-MP Forums Archive
Need help with text [+REP] - 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: Need help with text [+REP] (/showthread.php?tid=321267)



Need help with text [+REP] - tuuler - 26.02.2012

Hi, im making new gm for my server.

And if i connect i want my connect message will comme fully out ! (this problem is with all text)

It's coming like this: * * * Name Ha

But it need to come like this: * * * Name Has Joined With The Server.

SOrry about my bad english


Re: Need help with text [+REP] - [HK]Ryder[AN] - 26.02.2012

Show the code.We are not mind readers that where the problem is


Re: Need help with text [+REP] - tuuler - 26.02.2012

new pname[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
switch(reason)
{
case 0: format(string, sizeof(string), "{FFFFFF}• • • {FF1929}%s {FFFFFF}Has Left The Server. (Crashed)", pname);
case 1: format(string, sizeof(string), "{FFFFFF}• • • {FF1929}%s {FFFFFF}Has Left The Server. (Leaving)", pname);
case 2: format(string, sizeof(string), "{FFFFFF}• • • {FF1929}%s {FFFFFF}Has Left The Server. (Kicked or Banned)", pname);
}
SendClientMessageToAll(0x808080FF, string);


Re: Need help with text [+REP] - [HK]Ryder[AN] - 26.02.2012

Hey Man,
Show the connect code not disconnect :S


Re: Need help with text [+REP] - tuuler - 26.02.2012

Same problem with all text, but here it is

new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "{FFFFFF}• • • {FF1929}%s {FFFFFF}Has Joined With The Server.", pname);
SendClientMessageToAll(0x808080FF, string);


Re: Need help with text [+REP] - [HK]Ryder[AN] - 26.02.2012

Use
pawn Код:
new pname[MAX_PLAYER_NAME], string[50 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "{FFFFFF}• • • {FF1929}%s {FFFFFF}Has Joined With The Server.", pname);
SendClientMessageToAll(0x808080FF, string);



Re: Need help with text [+REP] - tuuler - 26.02.2012

Ty, it works man +rep


Re: Need help with text [+REP] - [HK]Ryder[AN] - 26.02.2012

Rep won't be added unless u have 20 posts