Examine this plugin.
Examine this plugin.
Can you see any bad/wrong things in this code? Most of players dropped from the server on map change. Can you please get these lines more systematic? :) PHP Code:
|
Re: Examine this plugin.
Does the file exist?
I would use is_user_connected(id) instead of !playerx[id] |
Re: Examine this plugin.
change this...
PHP Code:
for this.. PHP Code:
|
Re: Examine this plugin.
Why are you helping him?
Code:
Seriously, don't tell him how he fucked up with this. |
Re: Examine this plugin.
Quote:
@OP: Try this. This should be better, not sure if it works the way it should though, didn't test. Can't compile test it either, to lazy to download the compiler since the web one seems to be "broken" right now. PHP Code:
|
Re: Examine this plugin.
Thank you YamiKaitou! It looks nicer now. But this loop is endless. It always repeats reading the file from the beginning to end. The task should be removed if all lines in the file were printed.
Thanks again :) |
Re: Examine this plugin.
PHP Code:
|
Re: Examine this plugin.
PHP Code:
|
Re: Examine this plugin.
Why do people sometimes call sizeof() when they already know the size? Completely unnecessary.
Otherwise, nice optimization. And why not create them in the loop? They're local to the loop and it looks nicer. Does the same exact thing and they're freed when the loop ends. |
Re: Examine this plugin.
Quote:
|
| All times are GMT -4. The time now is 09:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.