Raised This Month: $51 Target: $400
 12% 

About spam posts


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Depresie
Veteran Member
Join Date: Nov 2013
Old 07-19-2016 , 09:32   Re: About spam posts
#11

Thanks Microsoft Edge

@sirius
The problem is when they correct you about something, and you keep spreading that wrong information
You also post very poorly ways of doing something... and the players will learn the wrong methods from you

I think this is it, but i may be wrong
__________________

Last edited by Depresie; 07-19-2016 at 09:34.
Depresie is offline
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 07-21-2016 , 03:50   Re: About spam posts
#12

You are wrong only about the poor methods.
siriusmd99 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-21-2016 , 05:35   Re: About spam posts
#13

No, Depresie is right. Your code usually has the same level as 10 years ago. You need to learn more before trying to help people with random code/suggestion/affirmation.
__________________

Last edited by Arkshine; 07-21-2016 at 05:38.
Arkshine is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 07-21-2016 , 08:04   Re: About spam posts
#14

Guess who's gonna get a new signature
__________________
Depresie is offline
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 07-21-2016 , 16:02   Re: About spam posts
#15

Quote:
Originally Posted by Arkshine View Post
No, Depresie is right. Your code usually has the same level as 10 years ago. You need to learn more before trying to help people with random code/suggestion/affirmation.
Show example, i don't remember to post code from 10 years ago.
You are speaking about amx_cvar hook or what?
siriusmd99 is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 07-21-2016 , 16:04   Re: About spam posts
#16

Well, one example is when they told you multiple times to use get_players instead of looping max players and check for alive players ( like 6 years ago )
__________________

Last edited by Depresie; 07-21-2016 at 16:05.
Depresie is offline
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 07-21-2016 , 17:33   Re: About spam posts
#17

And what's the point of using get players if I want to check value of all cells from an array?

If g_maxplayers is used in other part of the plugin then why not using looping method?

For example I used it in my voice rooms plugin.
I had to check the room and why the heck I need to get connected players with get_players function if cell with value 0 means disconnected player.

so when I use get players it does:

Loop players, check for connected ones, save them to array.

And after I check room of the players.

What I do is just loop all players and check room directly , without saving to array and checking for connected ones because when player is disconnected then room is 0.
Why not working obly with plugin global array and avoid multiple native calls?
Just to make code look "10 years after"?
siriusmd99 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-22-2016 , 02:30   Re: About spam posts
#18

Of course get_players() is not always necessary, it depends on what you need to do. You should use it if you are using natives on player inside the loop. Relying on some variable reset in client_disconnect() is not reliable. Reliability matters more than micro-optimization.

Anyway, let's stop here, it's OT. If you want to discuss things, feel free to open a thread in scripting section.
__________________

Last edited by Arkshine; 07-22-2016 at 02:31.
Arkshine is offline
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:30.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode