IRCCMD:
#1

Hi all,i coded this cmd:

Код:
IRCCMD:stats(botid, channel[], user[], host[], params[])
{
    if(IRC_IsOp(botid,channel,user))
	{
	    if(!dini_Exists(udb_encode(params))) return IRC_GroupSay(gGroupID, channel,"12,1Error: Account doesnt exist!");
		new ps,mo,ad,de,str[128];
		ps= dini_Int(file(params), "Score");
		mo= dini_Int(file(params), "Money");
		ad = dini_Int(file(params), "AdminLevel");
		de = dini_Int(udb_encode(params), "Deaths");
  		format(str,sizeof str,"4Statistics For Player %s:",params);
        IRC_GroupSay(gGroupID, channel,str);
  		format(str,sizeof str,"12,0Kills: %d ~ Money: %d ~ Admin Level: %d",ps,mo,ad);
        IRC_GroupSay(gGroupID, channel,str);
        if(ad > 0)
        {
			format(str,sizeof str,"12,0Deaths: %d ",de);
		} 	else format(str,sizeof str,"12,0Deaths: %d",de);
	     	IRC_GroupSay(gGroupID, channel,str);
		}
	return 1;
}
if u write !stats playername,the server will show the stats in the echo channel.

I've a problem:

Код:
C:\Documents and Settings\k\Desktop\SFWAR.pwn(517) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Documents and Settings\k\Desktop\SFWAR.pwn(666) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Documents and Settings\k\Desktop\SFWAR.pwn(1450) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Documents and Settings\k\Desktop\SFWAR.pwn(2116) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Documents and Settings\k\Desktop\SFWAR.pwn(2155) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Documents and Settings\k\Desktop\SFWAR.pwn(2189) : error 017: undefined symbol "file"
C:\Documents and Settings\k\Desktop\SFWAR.pwn(2190) : error 017: undefined symbol "file"
C:\Documents and Settings\k\Desktop\SFWAR.pwn(2191) : error 017: undefined symbol "file"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
What's wrong?
Reply


Messages In This Thread
IRCCMD: - by Face9000 - 17.12.2010, 11:23
Re: IRCCMD: - by Face9000 - 17.12.2010, 18:05
Re: IRCCMD: - by WillyP - 17.12.2010, 18:08
Re: IRCCMD: - by MestreKiller - 17.12.2010, 18:08
Re: IRCCMD: - by Face9000 - 17.12.2010, 18:09
Re: IRCCMD: - by WillyP - 17.12.2010, 18:10
Re: IRCCMD: - by MestreKiller - 17.12.2010, 18:11
Re: IRCCMD: - by Face9000 - 17.12.2010, 18:11
Re: IRCCMD: - by MestreKiller - 17.12.2010, 18:13
Re: IRCCMD: - by WillyP - 17.12.2010, 18:16

Forum Jump:


Users browsing this thread: 1 Guest(s)