case - 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: case (
/showthread.php?tid=70403)
case -
Schock - 24.03.2009
hey guys ...
i want to make it like this:
if a player enter a checkpoint something happens and an other time a other player or the same player enter the checkpoint a other option should happend on the same checkpoint can someone help?
Re: case -
Rks25 - 24.03.2009
use variables and if() statements.
Re: case -
Danut - 24.03.2009
Quote:
|
Originally Posted by Rk_
use variables and if() statements.
|
rofl ^^ he cam use else without if ?
My opinion : Use a timer
Re: case -
Schock - 24.03.2009
maybe i know it thanks
Re: case -
Schock - 24.03.2009
okay it dont work ..
but can someone tell me if its possible to do this:
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if (checkpoint == point1)
{
// do something
}
if (checkpoint == point2)
{
// do something other
}
// and so on
how i can define it?
Re: case -
Rks25 - 24.03.2009
u use a streamer? or just use one, much easier.
i prefer getcheckpointtype.
Re: case -
Schock - 24.03.2009
i use only 1 checkpoint ... can you explayne getcheckpointtype?
Re: case -
Rks25 - 24.03.2009
search for more details, you will get your answers.
Re: case -
Schock - 24.03.2009
will this be the right?
pawn Код:
stock getCheckpointType(playerID) {
if(playerCheckpoint[playerID] != 999)
return checkpointType[playerCheckpoint[playerID]];
else return -1;
}
Re: case -
Rks25 - 24.03.2009
and how will u use it, what would be the outcome?