Strange Warrning -- Need Fix Fast
#1

Hi, I was editing a gm and I got warnings. I don't want to waste time trying to solve it myself so I'm asking you.

Код:
dcmd_stats2(playerid)
{


	if(pAdminLevel == 4)
{


 	}
 	else
 	{
 	}
	return 1;
}
The warnings I'm getting are :
pawn Код:
C:\Users\Owner\Desktop\TDM\gamemodes\TDM.pwn(504) : warning 202: number of arguments does not match definition
C:\Users\Owner\Desktop\TDM\gamemodes\TDM.pwn(504) : warning 202: number of arguments does not match definition
C:\Users\Owner\Desktop\TDM\gamemodes\TDM.pwn(530) : warning 213: tag mismatch
C:\Users\Owner\Desktop\TDM\gamemodes\TDM.pwn(530) : warning 205: redundant code: constant expression is zero
C:\Users\Owner\Desktop\TDM\gamemodes\TDM.pwn(526) : warning 203: symbol is never used: "playerid"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Warnings.
Oh and I need this ASAP that's why I asked here, I don't want to waste an hour to fix it myself :O
Reply
#2

dont you mean

if(pAdminLevel[playerid] == 4)

?
Reply
#3

dcmd_stats2(playerid, params[])


and use,
pawn Код:
#pragma unused params // This means your cmd is not using params vv Same with the below.
#pragma unused playerid
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)