Max ping - 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: Max ping (
/showthread.php?tid=430813)
Max ping -
DerickClark - 15.04.2013
how i fix dis code?
Код:
public PingCheck()
{
for(new i=0;i < MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
OnPlayerPingUpdate(i);
}
}
return 1;
}
Код:
warning 219: local variable "PlayerName" shadows a variable at a preceding level
error 035: argument type mismatch (argument 2)
warning 213: tag mismatch
warning 204: symbol is assigned a value that is never used: "PlayerName"
warning 235: public function lacks forward declaration (symbol "PingCheck")
warning 235: public function lacks forward declaration (symbol "PingCheck")
error 021: symbol already defined: "PingCheck"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Re: Max ping -
TomatoRage - 15.04.2013
DId you made the timer and new the same name ??
Re : Max ping -
morocco - 15.04.2013
u make this forward
forward PingCheck
??
Re: Max ping -
faiznurfaza - 15.04.2013
PingCheck already defined or same name, check your script again
Re: Max ping -
DerickClark - 15.04.2013
//fixed