About cikles.
#1

Hi. I want to do cikle for players and just for CONNECTED i want to do it myself and i want to ask well?

new Players;

Код:
OnPlayerConnect:

Players ++

OnPlayerDisconnect

Players --;
My cikle:

for(new i = 0; i < Players; i++)
{

Does it will be just for connect players?
Reply
#2

I don't exactly follow here...by cikel, do you mean cycle, if so, it is called a loop.
And what do you wanna do with it?
Reply
#3

No. You can just do this instead:
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(IsPlayerConnected(i))
    {
    }
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)