SA-MP Forums Archive
Simple 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: Simple Help (/showthread.php?tid=628352)



Simple Help - silverms - 09.02.2017

he so I'm trying to send a message for player when he login like this:
Код:
			GameTextForPlayer(playerid,"Welcome",3000,1);.
			GameTextForPlayer(playerid,"%s",3000,1, playername);
but it isn't working well so any one help and does any one know the sound id fot thing like a hit please.


Re: Simple Help - Eoussama - 09.02.2017

Quote:
Originally Posted by silverms
Посмотреть сообщение
he so I'm trying to send a message for player when he login like this:
Код:
			GameTextForPlayer(playerid,"Welcome",3000,1);.
			GameTextForPlayer(playerid,"%s",3000,1, playername);
but it isn't working well so any one help and does any one know the sound id fot thing like a hit please.
PHP код:
new str[34], pname[MAX_PLAYER_NAME];
GetPlayerName(playeridpnamesizeof(pname));
format(strsizeof(str), "Welcome %s"pname);
GameTextForPlayer(playeridstr30001); 



Re: Simple Help - silverms - 09.02.2017

Quote:
Originally Posted by Eoussama
Посмотреть сообщение
PHP код:
new str[34], pname[MAX_PLAYER_NAME];
GetPlayerName(playeridpnamesizeof(pname));
format(strsizeof(str), "Welcome %s"pname);
GameTextForPlayer(playeridstr30001); 
is there a possible way to make them like sended in the following format
Welcome
jack Minner

underneath each other?


Re: Simple Help - oMa37 - 09.02.2017

For game texts use '~n~', Example;

PHP код:
new str[34], pname[MAX_PLAYER_NAME]; 
GetPlayerName(playeridpnamesizeof(pname)); 
format(strsizeof(str), "Welcome~n~%s"pname); 
GameTextForPlayer(playeridstr30001); 



Re: Simple Help - silverms - 09.02.2017

thanks