Little help please. - 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: Little help please. (
/showthread.php?tid=99809)
Little help please. -
Striker_Moe - 30.09.2009
Iґve added new taking[playerid]; on the top, but it says playerid is not definied..
I need to set it to 0 and 1 on different places in the script..
Re: Little help please. -
Desert - 30.09.2009
new taking[MAX_PLAYERS];
I do it like that
Re: Little help please. -
Striker_Moe - 30.09.2009
Can I use that under OnPlayerDeath and does it only take the selected playerid then?
Re: Little help please. -
Desert - 30.09.2009
Is it a score your making?
Re: Little help please. -
Striker_Moe - 30.09.2009
No. When a player enters a checkpoint, I need to set it to 1, so when the player dies I can set:
if(taking == 1)
{
CODE
}
Re: Little help please. -
Desert - 30.09.2009
On top of script: new taking[MAX_PLAYERS];
public OnPlayerDeath(playerid)
{
taking[playerid] = 1;
return 1;
}
Re: Little help please. -
(Jeff) - 30.09.2009
Quote:
Originally Posted by Desert
On top of script: new taking[MAX_PLAYERS];
public OnPlayerDeath(playerid)
{
taking[playerid] = 1;
return 1;
}
|
I like
Код:
enum PInfo,
all your shit here,
and here,
and here,
its easier if for me