Strange Warrning -- Need Fix Fast - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Strange Warrning -- Need Fix Fast (
/showthread.php?tid=203072)
Strange Warrning -- Need Fix Fast - Guest3598475934857938411 - 26.12.2010
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
Re: Strange Warrning -- Need Fix Fast -
[WF]Demon - 26.12.2010
dont you mean
if(pAdminLevel[playerid] == 4)
?
Re: Strange Warrning -- Need Fix Fast -
Lorenc_ - 26.12.2010
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