Reload File
Hi
I have a little problem with this code.I tried to reload a file with a command but it is not working(I don't know why).I saw on the another plugin this method and there it's work. In this file I want to put the names of players (even if i think it does not matter) I hope you can fix that or tell me where i'm wrong PHP Code:
|
Re: Reload File
What is the file format
Code:
name1 |
Re: Reload File
Quote:
|
Re: Reload File
Why do you use parse() if the line (s_Buffer) only contains a name? Also, parse is used in a wrong way.
you should do replace(s_Buffer, charsmax(s_Buffer), "^n", "") before checking anything else. A fixed code would be (I feel that something else is wrong, i don't know why -.-) PHP Code:
|
Re: Reload File
Don't use read_file, use new file natives.
Don't use replacer "^n" "", just use trim() native. PHP Code:
|
Re: Reload File
Neither of this two examples does not work
|
Re: Reload File
Attach your file here.
Post the whole plugin so can see if you have made mistakes at other places, and how you check if file has been reloaded. |
Re: Reload File
1 Attachment(s)
Here
|
Re: Reload File
You don't use the trie to check if a player is vip, you check by the the array gs_VipsList
So each time you load a command, you need to reset the array and copy each entry from the file to it. you could just do this to shortcut it PHP Code:
|
Re: Reload File
Calling 33 times a native where you could call one time with arrayset without loop or 0 with loop by just setting to = 0; do you have some awesome advice like that ?
|
| All times are GMT -4. The time now is 16:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.