SA-MP Forums Archive
pls help error 017 , 029 , 107 - 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: pls help error 017 , 029 , 107 (/showthread.php?tid=594251)



pls help error 017 , 029 , 107 - Deceiver - 15.11.2015

Код HTML:
D:\Cops And Robbers\gamemodes\CopsandRobbers.pwn(7130) : error 017: undefined symbol "NetStats_PacketLossPercent"
D:\Cops And Robbers\gamemodes\CopsandRobbers.pwn(7137) : error 017: undefined symbol "NetStats_PacketLossPercent"
D:\Cops And Robbers\gamemodes\CopsandRobbers.pwn(11010) : error 017: undefined symbol "foreach"
D:\Cops And Robbers\gamemodes\CopsandRobbers.pwn(11010) : error 029: invalid expression, assumed zero
D:\Cops And Robbers\gamemodes\CopsandRobbers.pwn(11010) : error 017: undefined symbol "i"
D:\Cops And Robbers\gamemodes\CopsandRobbers.pwn(11010) : fatal error 107: too many error messages on one line
where is problem? how can i fix it?


Re: pls help error 017 , 029 , 107 - BiosMarcel - 15.11.2015

Dude,

We are no wizards, we can't fix a code that we don't have.

and the error log even tells u what the problem is ... just read it


Re: pls help error 017 , 029 , 107 - 1proplayer1 - 16.11.2015

show me your script


Re: pls help error 017 , 029 , 107 - Deceiver - 18.11.2015

Quote:
Originally Posted by 1proplayer1
Посмотреть сообщение
show me your script
error 017: undefined symbol "NetStats_PacketLossPercent"
Код HTML:
CMD:pl(playerid,params[])
    {
    new szString[144];
    format(szString, sizeof(szString), "Packets lost: %.2f percent.", NetStats_PacketLossPercent(playerid));
    SendClientMessage(playerid, -1, szString);
    }
error 017: undefined symbol "NetStats_PacketLossPercent"
Код HTML:
CMD:packetloss(playerid,params[])
    {
    new szString[144];
    format(szString, sizeof(szString), "Packets lost: %.2f percent.", NetStats_PacketLossPercent(playerid));
    SendClientMessage(playerid, -1, szString);
    }
error 017: undefined symbol "foreach"
error 029: invalid expression, assumed zero
error 017: undefined symbol "i"
fatal error 107: too many error messages on one line
Код HTML:
	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);
	}