About cycles.
#1

Hi i want to ask something here:

Код:
for(new i = 0; i < MAX_PLAYERS; i++) 
{
my MAX_PLAYERS is 100. It will be from 0 to 100? or 0 to 99 maybe need that: (=)

Код:
for(new i = 0; i =< MAX_PLAYERS; i++) 
{
Reply
#2

From 0 to 500:
pawn Код:
for(new i = 0; i <= MAX_PLAYERS; i++)
From 0 to 499:
pawn Код:
for(new i = 0, i < MAX_PLAYERS; i++)
MAX_PLAYERS has a value of 500. If you want 100 you can do that:
pawn Код:
#undef MAX_PLAYERS
#define MAX_PLAYERS (100)

//Should put it under #include <a_samp>
Best regards!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)