Max ping
#1

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

DId you made the timer and new the same name ??
Reply
#3

u make this forward

forward PingCheck

??
Reply
#4

PingCheck already defined or same name, check your script again
Reply
#5

//fixed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)