how to make "playername (1):"
#4

@ ^'s code

pawn Код:
public OnPlayerText( playerid, text[] )
{
    new string[ 128 ];
    format( string ,sizeof( string ),"%s ( %d ) : %s",GetPlayerNameEx( playerid ) ,playerid ,text );
    SendClientMessageToAll( -1 , string ); // GetPlayerColor ??
    return 0;
}

stock GetPlayerNameEx( playerid )
{
     new pName[ 25 ];
     GetPlayerName( playerid, pName, 25 );
     return pName;
}
*fixed, it had an odd string length.
Reply


Messages In This Thread
how to make "playername (1):" - by [EDT]AmanSingh123 - 19.06.2011, 11:41
Re: how to make "playername (1):" - by Unknown_Killer - 19.06.2011, 11:52
Re: how to make "playername (1):" - by PrawkC - 19.06.2011, 11:56
Re: how to make "playername (1):" - by Cameltoe - 19.06.2011, 12:07
Re: how to make "playername (1):" - by [EDT]AmanSingh123 - 19.06.2011, 12:16
Re: how to make "playername (1):" - by PrawkC - 19.06.2011, 12:20
Re: how to make "playername (1):" - by BigETI - 19.06.2011, 12:28
Re: how to make "playername (1):" - by Vince - 19.06.2011, 14:48
Re: how to make "playername (1):" - by [EDT]AmanSingh123 - 19.06.2011, 15:25
Re: how to make "playername (1):" - by Wesley221 - 19.06.2011, 15:31

Forum Jump:


Users browsing this thread: 2 Guest(s)