[HELP] get_user_name probleme
get_user_name(id, iTarget, charsmax(iTarget)); not work the player name is not logged how he must be ?
PHP Code:
|
Re: [HELP] get_user_name probleme
get_user_name( id , string , max characters )
You are specifying the user id twice: id, iTarget. In get_user_name(id, iTarget, charsmax(iTarget)); Replace iTarget with szName[ 1 ] Same here: log_to_file(g_szLogFile, "Admin '%s' banned '%s' From Guards Team ", szName[0], iTarget); iTarget should be szName[ 1 ] |
Re: [HELP] get_user_name probleme
i cant cause i shoud use iTarget and if i replace all iTarget with szName[ 1 ] he going to faild erreur :
szName already defined |
Re: [HELP] get_user_name probleme
Dont re-define it, do this
PHP Code:
|
Re: [HELP] get_user_name probleme
You should only be replacing it in the one function, not where it's defined.
|
Re: [HELP] get_user_name probleme
Bugsy u didn't understend if i do like you said he will not work cause the log must be : Admin 'name banned 'Player Name' From Guards Team and the player name will be from iTarget id not szName[1]
|
Re: [HELP] get_user_name probleme
Give me an example of what you want the output to be.
|
Re: [HELP] get_user_name probleme
look Itarget = player from menu which is going to be shown and what i want is to make " banned '%s' From Guards Team" show the choosed player name from the menu
|
Re: [HELP] get_user_name probleme
:roll:If iTarget is the chosen player id then that is what it will do. Are you trying what I am suggesting or are you assuming it does something else without testing first?
|
Re: [HELP] get_user_name probleme
when admin block another player from ct team
L 12/29/2015 - 04:22:38: Admin 'Killer' banned 'Killer' From Guards Team |
| All times are GMT -4. The time now is 09:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.