Foreach
#1

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.
Reply
#2

pawn Код:
foreach(Player,i)
Reply
#3

pawn Код:
#define foreach(%1) for(new %1; %1 < MAX_PLAYERS; %1++)
By the looks of it, you don't have the include??
Reply
#4

And this ?
PHP код:
if ( PlayerToPoint(2.01713.9775,-2486.5249,13.2817 ) ) 
Where's the player parameter ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)