PDA

View Full Version : How to Combine These


BlazingKnife
19/05/2013, 07:01 PM
i want to combine these too
new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));

format(string, sizeof(string), "%s has joined the server.", name);
SendClientMessageToAll(0xC4C4C4FF, string);

And

format(str, sizeof(str), "Another Player Has Registered Making This server has %i Player ", sInfo[accs]);
SendClientMessage(playerid, COLOR_ORANGE, str);

so i get That
example

Blazing has registered making the server has total 5 players

Antonio144
19/05/2013, 09:54 PM
new name[MAX_PLAYER_NAME+1], string[74];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s has registered making the server has total %d players", name, sInfo[accs]);
SendClientMessageToAll(0xC4C4C4FF, string);


Might wanna fix the sentence a bit.

"%s has registered making him %d player on the server"
"Welcome to the server %s. You are %d. player to register"
-NOTE: change the string size accordingly.

Or something like that.