Replacing %s on file with player name
Hi every1
I have an problem I hope you will help me with it Code:
show_hudmessage(id, "%s" ,szText,player) //(%s reads the file so dont mess with it :D)//Thanx,sorry for short code... :oops: |
Re: Replacing %s on file with player name
WTF is this ?
PHP Code:
|
Re: Replacing %s on file with player name
I edited post so I acidentally removed it . LOL
(sry) |
Re: Replacing %s on file with player name
You are passing 2 variables for formating but only one %s
|
Re: Replacing %s on file with player name
And i just told you why
|
Re: Replacing %s on file with player name
Quote:
But if szText also contains %s then it will work (or not?) anyway what are types of those variables ? szText, player. |
Re: Replacing %s on file with player name
Are we supposed to read minds ? :D
He showed us one line of code without any context |
Re: Replacing %s on file with player name
Quote:
Or just show this function and the file you are trying to read |
Re: Replacing %s on file with player name
Quote:
I fixed this but I just need to get lens of text file,would you help me on that |
Re: Replacing %s on file with player name
Quote:
format(szText, 63, dir) read_file(dir,0,szText,63,len) new player[32] get_user_name(id,player,32) |
| All times are GMT -4. The time now is 12:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.