Help please...
#1

pawn Код:
D:\Game\MRP2\gamemodes\mrp.pwn(48154) : error 017: undefined symbol "foreach"
D:\Game\MRP2\gamemodes\mrp.pwn(48154) : error 029: invalid expression, assumed zero
D:\Game\MRP2\gamemodes\mrp.pwn(48154) : error 017: undefined symbol "i"
D:\Game\MRP2\gamemodes\mrp.pwn(48154) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
pawn Код:
{
    foreach(new i : Player) {
        new pPing = GetPlayerPing(i);
        new Float:pPacket = GetPlayerPacketLoss(i);
        new iString[128];
        format(iString,sizeof(iString),"~w~~h~~h~Ping ~r~~h~~h~%d           ~w~~h~~h~PacketLoss ~r~~h~~h~%.1f%%", pPing, pPacket);
        PlayerTextDrawSetString(i, FPSPingPacket[i],iString);
    }
}
how to fix this ?
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=92679 is the original thread.

Have you made sure you have:

#include foreach

At the top of your script?
Reply
#3

thanks...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)