Raised This Month: $ Target: $400
 0% 

HELP !! get_user_name problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
thEsp
BANNED
Join Date: Aug 2017
Old 07-02-2018 , 09:37   HELP !! get_user_name problem
#1

Im making an plugin and I have some problems with it
The code is correctly but it doesnt work as needed

Insted of showing player/user name it shows server name
The code below

p.s : dir = filename and directory



Code:
public hudmessage(id)
{	
	if(!file_exists(dir))
	{
		write_file(dir,"%s Welcome to our Server ! GL & HF",_)	
	}
	
	new szText[64], len	
	format(szText, 63, dir)
	read_file(dir,0,szText,63,len)
	
	new szName[32]
	get_user_name(id,szName,charsmax(szName))
	
	replace(szText,64,"%s",szName)

	set_hudmessage(0, 255, 0, 0.38, 0.56, 0, 6.0, 12.0)
	show_hudmessage(id, "%s" ,szText)
}
Any way to solve this problem
thEsp is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode