Simple Help
#1

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

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

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

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); 
Reply
#5

thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)