Setting a string for each client
Is this the correct way to make a string for each client. Sorry, if the question sound a little stupid
PHP Code:
|
Re: Setting a string for each client
That looks okay. What exactly are you trying to accomplish?
|
Re: Setting a string for each client
I made a custom ban menu, where the admins can change the time and reason from the options, but I need to set a something by default. By the way, thanks for the reply.
Sorry for my English! |
Re: Setting a string for each client
formatex() should only be used when you are actually FORMATTING the string. In your example, you are only copying a string to a string variable so you should use copy() instead.
copy() takes the same parameters and in the same order as formatex(): PHP Code:
|
Re: Setting a string for each client
hahaha. lol. why u are setting the same strung for all players, just make a cvar for default time and reason and then set task for cvar parse or use get_pcvar_string on ban and done.
|
Re: Setting a string for each client
Quote:
I don't think someone can tell exactly what he is doing based on what he posted. Many times people post snippets like that when they are trying to figure something out. |
Re: Setting a string for each client
Quote:
By the way, can you look on my recent topic I have also a funny question? I can't solve it, thanks. |
Re: Setting a string for each client
I don't get it, but ok.
|
Re: Setting a string for each client
Quote:
P.S. @siriusmd99: The btime holds a time for bans, where each admin can change it as he decide. So if I use CVARs, if one admin change the time, it will be changed for all admins. Same for breason! |
Re: Setting a string for each client
aha, i thought it was bantime for players.my wrong, sorry.
|
| All times are GMT -4. The time now is 09:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.