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;
}
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.
C:\Documents and Settings\k\Desktop\SFWAR.pwn(2596) : error 012: invalid function call, not a valid address C:\Documents and Settings\k\Desktop\SFWAR.pwn(2596) : warning 215: expression has no effect C:\Documents and Settings\k\Desktop\SFWAR.pwn(2596) : error 001: expected token: ";", but found ")" C:\Documents and Settings\k\Desktop\SFWAR.pwn(2596) : error 029: invalid expression, assumed zero C:\Documents and Settings\k\Desktop\SFWAR.pwn(2596) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. }
ps= dini_Int(file(params), "Score");
ps= dini_Int(file(params), "Score"))
|
I'm not stupid,i can read good.
I tried to add the new file[256]; but i get this errors: Код:
C:\Documents and Settings\k\Desktop\SFWAR.pwn(2596) : error 012: invalid function call, not a valid address C:\Documents and Settings\k\Desktop\SFWAR.pwn(2596) : warning 215: expression has no effect C:\Documents and Settings\k\Desktop\SFWAR.pwn(2596) : error 001: expected token: ";", but found ")" C:\Documents and Settings\k\Desktop\SFWAR.pwn(2596) : error 029: invalid expression, assumed zero C:\Documents and Settings\k\Desktop\SFWAR.pwn(2596) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. } Код:
ps= dini_Int(file(params), "Score"); |
ps= dini_Int(file, "Score",params);
format(file,sizeof(file),"something/something");
|
Yeah,dont work.
[OC]MestreKiller = I dont need Set to read account file. |
|
he's gunna get a error because you have one extra ")"
and you cant use params has a file -.- you need to define it ex: pawn Код:
sorry vic. just saw your edit |