DisablePlayerCheckpoint in a loop
#1

Код:
  	for(new i=0; i<MAX_PLAYERS; i++)
  {
    DisablePlayerCheckpoint();
  }
Why does that not work? The checkpoint still gets displayed.
Reply
#2

https://sampwiki.blast.hk/wiki/DisablePlayerCheckpoint
Reply
#3

You haven't used any parameters in the function:
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
   DisablePlayerCheckpoint(i);
}
Reply
#4

Quote:
Originally Posted by SpiderPork
You haven't used any parameters in the function:
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
  DisablePlayerCheckpoint(i);
}
try this:

for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
DisablePlayerCheckpoint(i);
}
}
Reply
#5


try this:

Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
 if(IsPlayerConnected(i))
  {
   DisablePlayerCheckpoint(i);
  }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)