From a3935e578dc18029b187c9793697a87d74a70edd Mon Sep 17 00:00:00 2001 From: Lorenc Date: Fri, 30 Mar 2018 17:43:56 +1100 Subject: [PATCH] set player name hook has a stock --- pawno/include/irresistible/helpers.inc | 4 ++-- pawno/include/irresistible/security.inc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pawno/include/irresistible/helpers.inc b/pawno/include/irresistible/helpers.inc index e3f3917..eb788c5 100644 --- a/pawno/include/irresistible/helpers.inc +++ b/pawno/include/irresistible/helpers.inc @@ -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 ], diff --git a/pawno/include/irresistible/security.inc b/pawno/include/irresistible/security.inc index 981466f..a971391 100644 --- a/pawno/include/irresistible/security.inc +++ b/pawno/include/irresistible/security.inc @@ -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 );