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)
+--- Thread: Help please... (
/showthread.php?tid=476006)
Help please... -
warlord321 - 16.11.2013
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 ?
Re: Help please... -
StuartD - 16.11.2013
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?
Re: Help please... -
warlord321 - 16.11.2013
thanks...