Radio problem.
#1

Hello, I have little problem with my script... When Im writing in /r [text] I dont see my name but it should be shown:

Код:
format(string, 256, "(( Radio: %s %s: %s ))", radioranks, sendername, cmdtext[3]);
	SendClientMessage(i, 0x01FCFFC8, string);
I have inserted: sendername but I just see: (( Radio: Civ : text )) I hope someone will help me
Reply
#2

You first must get player name.

pawn Код:
new sendername[MAX_PLAYER_NAME]; // you probably have that
new string[256];
pawn Код:
GetPlayerName(playerid,sendername,sizeof(string));

format(string,sizeof(string),"(( Radio: %s %s: %s ))", radioranks, sendername, cmdtext[3]);
SendClientMessage(i, 0X01FCFFC8, string);
Reply
#3

Ahh I forgot about GetPlayerName , Thanks
Reply
#4

Did you test if it work?
Reply
#5

Of course I tested, and it works
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)