[Tutorial] GetMaxPlayers() > MAX_PLAYERS ?
#21

It's not a bad attitude to bring up facts.
On the other hand; telling a person to 'stfu' is pretty rude, so I would watch my attitude myself if I were you.
Reply
#22

Quote:
Originally Posted by Claude
View Post
Uhm.. Stfu okay? Don't wanna get banned again? Work on your attitude

[FeK]DraKiNs @ Thanks for your explaination
Calm down and read the posts above in the future instead of making yourself look like a fool. Work on your intelligence AND your attitude, your comment was rather rude.
Reply
#23

Quote:
Originally Posted by Calgon
View Post
Calm down and read the posts above in the future instead of making yourself look like a fool. Work on your intelligence AND your attitude, your comment was rather rude.
Oh, sir, I am very calm, you too? Yet your comment was either rude.
/discussionclosed
Reply
#24

Quote:
Originally Posted by Y_Less
View Post
Actually foreach uses a completely different method - it maintains an internal linked list of connected players, so it only ever loops through connected players.
Oh, I knew that it wasn't using MAX_PLAYERS

Thanks
Reply
#25

Quote:
Originally Posted by Claude
View Post
Oh, sir, I am very calm, you too? Yet your comment was either rude.
/discussionclosed
I am calm.

Quote:
Originally Posted by thomas..
View Post
roflpawned
Are you honestly that retarded?
Reply
#26

Claude, you fail.
thomas.. you fail even more, so just quit it.
Reply
#27

Code:
new Money[GetMaxPlayers()];
We can't define the numer of array slots with a function (or variable), the code above crashes pawncc.

Delete this tutorial ?
Reply
#28

Quote:
Originally Posted by ZecKo
View Post
Code:
new Money[GetMaxPlayers()];
We can't define the numer of array slots with a function (or variable), the code above crashes pawncc.

Delete this tutorial ?
hmm... and what if you do:

new Max_Playa = GetMaxPlayers()

new Money[Max_Playa];
Reply
#29

It will be the same, think, GetMaxPlayers() is not knew at the compilation, only after, it just can't works.
Reply
#30

Quote:
Originally Posted by ******
Посмотреть сообщение
[HLF]Southclaw: The one issue with using a non-standard define is:

pawn Код:
#include <a_samp>
#define PLAYERS 10
#include <other_inc>
Here the other include will still use the default 500 players, despite your attempts to prevent that waste of memory, the best option would possibly be both (except when you are writing code to be released, in which case I would definitely encourage using MAX_PLAYERS).
OMG, I never through about the other includes still using 500 cells!



Quote:
Originally Posted by [FeK]DraKiNs
Посмотреть сообщение
pawn Код:
#Define LoopPlayers (%0,%1) for(new 0%=0,%0 <%1,%0++) if(IsPlayerConnected (%0) && !IsPlayerNPC (%0))
Your macro is bad, right one:

pawn Код:
#define LoopPlayers(%0,%1) for(new %0; %0 < %1; %0++) if(IsPlayerConnected(%0) && !IsPlayerNPC(%0))
Reply
#31

My compiler crashes.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)