Foreach - 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: Foreach (
/showthread.php?tid=269371)
Foreach -
SamyRomafia - 16.07.2011
pawn Код:
/*--Other--*/
foreach(Player) //4324
{
if ( PlayerToPoint(2.0, 1713.9775,-2486.5249,13.2817 ) )
{
if ( GetPlayerState( xi ) == PLAYER_STATE_DRIVER )
{
......
}
else
{
......
}
}
return 1;
}
I can't understand this warning:
Код:
C:\Users\Samy\Desktop\Tutto\SAMP MTA\SAMP\SCRIPT\DSR\gamemodes\DSR.pwn(4324) : warning 203: symbol is never used: "foreach"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
Re: Foreach -
Kitten - 16.07.2011
Re: Foreach -
Lorenc_ - 16.07.2011
pawn Код:
#define foreach(%1) for(new %1; %1 < MAX_PLAYERS; %1++)
By the looks of it, you don't have the include??
Re: Foreach -
MoroDan - 16.07.2011
And this ?
PHP код:
if ( PlayerToPoint(2.0, 1713.9775,-2486.5249,13.2817 ) )
Where's the player parameter ?