17.12.2012, 13:57
Example
My name Is Windrush
i Want To Add This
" 's House "
And it Will Be
" Windrush's House"
My name Is Windrush
i Want To Add This
" 's House "
And it Will Be
" Windrush's House"
GetPlayerName(playerid,+"'s House")
"%s's house"
public OnPlayerConnect(playerid) //When a player connects, this callback is called.
{
new name[MAX_PLAYER_NAME]; //We created a name variable 'name'.
GetPlayerName(playerid, name, sizeof(name)); //We're getting player's name and also executing the name variable.
new string[128]; //The normal send client message just don't support floats directly, so we must format to show a message with player name.
format(string, sizeof(string), "%s has joined the server.", name); //We are formatting it. '%s' stands for a text format and here we've executed our name variable at last. So '%s' will be considered as player's name.
SendClientMessageToAll(0xFF0000, string); //Sends all the message - formatted string message.
return 1;
}