Connect message.
#1

Hey, i have an problem with my Connect message. Here it is:

Код:
new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "{999900}%s {FFFFFF}Has Joined The Server | Ping: {999900}%s", pname,GetPlayerPing(playerid));
SendClientMessageToAll(0xAAAAAAAA, string);
But it will look like this In-Game: %s Has Joined The Server |

I changed %s to %i, but still didnt work.

So please help me !
Reply
#2

The problem is because of this

PHP код:
{999900
Try removing it.
Reply
#3

%s = String, %i = Integer, and like Romel said it is because of the colors.
Reply
#4

Thanks
Reply
#5

Don't use
Quote:

string[22 + MAX_PLAYER_NAME];

use new string[128];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)