SA-MP Forums Archive
Whats this called ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Whats this called ? (/showthread.php?tid=183308)



Whats this called ? - Rocky Balboa - 14.10.2010

hmm i was looking for something , you know like a checkpoint but i cant destroy a certain checkpoint for all the players .. how to do that ?


Re: Whats this called ? - Las Venturas CNR - 14.10.2010

No such function, here's a code I made however:



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



Re: Whats this called ? - Austin - 14.10.2010

pawn Код:
for(new x=0; x < MAX_PLAYERS; x++)
{
    if(!IsPlayerConnected(x)) continue;
    DisablePlayerCheckpoint(x);
}
This?


Re: Whats this called ? - Las Venturas CNR - 14.10.2010

Quote:
Originally Posted by Austin
Посмотреть сообщение
pawn Код:
for(new x=0; x < MAX_PLAYERS; x++)
{
    if(!IsPlayerConnected(x)) continue;
    DisablePlayerCheckpoint(x);
}
This?
Did you make that?


Re: Whats this called ? - Austin - 14.10.2010

Quote:
Originally Posted by Las Venturas CNR
Посмотреть сообщение
Did you make that?
Yes, it's tabbed properly, and you should always make sure new coders are provided code that is indented correctly or you might teach them bad habits.


Re: Whats this called ? - Las Venturas CNR - 14.10.2010

Quote:
Originally Posted by Austin
Посмотреть сообщение
Yes, it's tabbed properly, and you should always make sure new coders are provided code that is indented correctly or you might teach them bad habits.
Hmm... I was taught to make codes like what I showed. I should change mine...



Off topic:

This forum requires that you wait 120 seconds between posts. Please try again in 74 seconds.
This forum requires that you wait 120 seconds between posts. Please try again in 45 seconds.
This forum requires that you wait 120 seconds between posts. Please try again in 12 seconds.
This forum requires that you wait 120 seconds between posts. Please try again in 5 seconds.


Re: Whats this called ? - Austin - 14.10.2010

Quote:
Originally Posted by Las Venturas CNR
Посмотреть сообщение
Off topic:

This forum requires that you wait 120 seconds between posts. Please try again in 74 seconds.
This forum requires that you wait 120 seconds between posts. Please try again in 45 seconds.
This forum requires that you wait 120 seconds between posts. Please try again in 12 seconds.
This forum requires that you wait 120 seconds between posts. Please try again in 5 seconds.
Too right, that is some bullshit right there... lol, I had to wait 56 seconds to post this.