set player name hook has a stock

This commit is contained in:
Lorenc 2018-03-30 17:43:56 +11:00
parent 5fbccd82eb
commit a3935e578d
2 changed files with 3 additions and 3 deletions

View File

@ -234,8 +234,8 @@ stock Player_GetUnusedAttachIndex( playerid )
return cellmin;
}
// purpose: convert integer into dollar string
stock number_format( { _, Float, Text3D, Menu, Text, DB, DBResult, bool, File }: variable, prefix = '$', decimals = -1, thousand_seperator = ',', decimal_point = '.', tag = tagof( variable ) ) // by Slice
// purpose: convert integer into dollar string (large credit to Slice - i just added a prefix parameter)
stock number_format( { _, Float, Text3D, Menu, Text, DB, DBResult, bool, File }: variable, prefix = '$', decimals = -1, thousand_seperator = ',', decimal_point = '.', tag = tagof( variable ) )
{
static
s_szReturn[ 32 ],

View File

@ -134,7 +134,7 @@ hook OnPlayerDisconnect( playerid, reason )
#endif
/* ** Hooked Functions ** */
Security_SetPlayerName( playerid, const name[ ] )
stock Security_SetPlayerName( playerid, const name[ ] )
{
if ( 0 <= playerid < MAX_PLAYERS ) {
format ( p_PlayerName[ playerid ], sizeof ( p_PlayerName[ ] ), "%s", name );