Need Opinion (Optimizing / File or Array)
In a file, I have the line:
Code:
hitman *p STEAM_ID_SOMETHING a b c dCode:
But I'm super annoyed when I think I'm doing something wrong. The above function works. But I think it can be better, is there anything / other alternatives i can do, to accomplish this? Also, since i'm using a file. Should I use ether a vault system, or dynamic arrays? |
Re: Need Opinion (Optimizing / File or Array)
I think this should do it:
(I haven't tested and didn't check for typos.) You should write the file like this if you want to use my function: Code:
hitman *p STEAM_ID_SOMETHING abcdCode:
|
Re: Need Opinion (Optimizing / File or Array)
Well one thing is. I'm not using AMXX flags. It's a custom access thing. So read_flags could not be used here.
|
Re: Need Opinion (Optimizing / File or Array)
To answer your last question Drak, use a vault system.
|
Re: Need Opinion (Optimizing / File or Array)
Quote:
And I think the best way would be to read the file into a cellarray on mapload/command, and check it when needed. |
| All times are GMT -4. The time now is 01:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.