27.07.2014, 16:07
(
Последний раз редактировалось Clergy; 27.07.2014 в 17:19.
Причина: forgot to post the code
)
Код:
C:\Documents and Settings\$\Desktop\gamemodes\RP\gamemodes\rb.pwn(3847) : warning 217: loose indentation C:\Documents and Settings\$\Desktop\gamemodes\RP\gamemodes\rb.pwn(3847) : error 017: undefined symbol "dcmd_unban" C:\Documents and Settings\$\Desktop\gamemodes\RP\gamemodes\rb.pwn(3849) : error 017: undefined symbol "playerid" C:\Documents and Settings\$\Desktop\gamemodes\RP\gamemodes\rb.pwn(3850) : error 079: inconsistent return types (array & non-array) C:\Documents and Settings\$\Desktop\gamemodes\RP\gamemodes\rb.pwn(3852) : warning 219: local variable "string" shadows a variable at a preceding level C:\Documents and Settings\$\Desktop\gamemodes\RP\gamemodes\rb.pwn(3853) : error 017: undefined symbol "playerid" C:\Documents and Settings\$\Desktop\gamemodes\RP\gamemodes\rb.pwn(3855) : error 017: undefined symbol "params" C:\Documents and Settings\$\Desktop\gamemodes\RP\gamemodes\rb.pwn(3856) : error 017: undefined symbol "playerid" C:\Documents and Settings\$\Desktop\gamemodes\RP\gamemodes\rb.pwn(3856) : error 079: inconsistent return types (array & non-array) C:\Documents and Settings\$\Desktop\gamemodes\RP\gamemodes\rb.pwn(3861) : error 017: undefined symbol "playerid" C:\Documents and Settings\$\Desktop\gamemodes\RP\gamemodes\rb.pwn(3861) : error 079: inconsistent return types (array & non-array) C:\Documents and Settings\$\Desktop\gamemodes\RP\gamemodes\rb.pwn(3875) : error 004: function "ABroadCast" is not implemented C:\Documents and Settings\$\Desktop\gamemodes\RP\gamemodes\rb.pwn(3877) : error 004: function "ABroadCast" is not implemented C:\Documents and Settings\$\Desktop\gamemodes\RP\gamemodes\rb.pwn(3886) : error 004: function "LoginLog" is not implemented C:\Documents and Settings\$\Desktop\gamemodes\RP\gamemodes\rb.pwn(3887) : error 079: inconsistent return types (array & non-array) C:\Documents and Settings\$\Desktop\gamemodes\RP\gamemodes\rb.pwn(3890) : warning 225: unreachable code C:\Documents and Settings\$\Desktop\gamemodes\RP\gamemodes\rb.pwn(3890) : error 017: undefined symbol "dcmd_oban" C:\Documents and Settings\$\Desktop\gamemodes\RP\gamemodes\rb.pwn(3892) : error 017: undefined symbol "playerid" C:\Documents and Settings\$\Desktop\gamemodes\RP\gamemodes\rb.pwn(3893) : error 079: inconsistent return types (array & non-array) C:\Documents and Settings\$\Desktop\gamemodes\RP\gamemodes\rb.pwn(3895) : warning 219: local variable "string" shadows a variable at a preceding level C:\Documents and Settings\$\Desktop\gamemodes\RP\gamemodes\rb.pwn(3896) : error 017: undefined symbol "playerid" C:\Documents and Settings\$\Desktop\gamemodes\RP\gamemodes\rb.pwn(3898) : error 017: undefined symbol "params" C:\Documents and Settings\$\Desktop\gamemodes\RP\gamemodes\rb.pwn(3899) : error 017: undefined symbol "playerid" C:\Documents and Settings\$\Desktop\gamemodes\RP\gamemodes\rb.pwn(3899) : error 079: inconsistent return types (array & non-array) C:\Documents and Settings\$\Desktop\gamemodes\RP\gamemodes\rb.pwn(3904) : error 017: undefined symbol "playerid" C:\Documents and Settings\$\Desktop\gamemodes\RP\gamemodes\rb.pwn(3904) : error 079: inconsistent return types (array & non-array) C:\Documents and Settings\$\Desktop\gamemodes\RP\gamemodes\rb.pwn(3915) : error 004: function "ABroadCast" is not implemented C:\Documents and Settings\$\Desktop\gamemodes\RP\gamemodes\rb.pwn(3917) : error 004: function "ABroadCast" is not implemented C:\Documents and Settings\$\Desktop\gamemodes\RP\gamemodes\rb.pwn(3926) : error 004: function "LoginLog" is not implemented C:\Documents and Settings\$\Desktop\gamemodes\RP\gamemodes\rb.pwn(3927) : error 079: inconsistent return types (array & non-array) Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.
Guys need your help

Thanks in advance.
Код:
//------------------------------------------------------------------------------------------------------ dcmd_unban(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] < 5) return 0; new rcmsg[80], acct[24], file[64],name[24],string[128],otherfile[64]; GetPlayerName(playerid, name, sizeof(name)); if(sscanf(params, "s", acct)) return SendClientMessage(playerid, COLOR_LIGHTRED, "Usage: /unban <account name>"); format(file, sizeof(file),"LARP/Users/%s.ini", acct); if(!dini_Exists(file)) return SendClientMessage(playerid, COLOR_LIGHTRED,"Error: account doesn't exists!"); dini_IntSet(file, "Banned", 0); format(ipFILE, 128, "LARP/Users/Aliases/%s.txt", acct); format(rcmsg, sizeof(rcmsg), "unbanip %s", dini_Get(ipFILE,"NameIp")); SendRconCommand(rcmsg); SendRconCommand("reloadbans"); format(otherfile,sizeof(otherfile),"LARP/Users/Bans/%s.ban",dini_Get(ipFILE,"NameIp")); fremove(otherfile); format(string, sizeof(string), "[ADMIN]: %s has unbanned The account of %s.", name,acct); ABroadCast(COLOR_LIGHTRED,string, 5); format(string, sizeof(string), "[ADMIN]: IP %s has been removed by the ban list by %s.", dini_Get(ipFILE,"NameIp"), name); ABroadCast(COLOR_WHITE,string, 5); format(string, sizeof(string), "* Administrator %s Has Unbanned the account of %s", name,acct); SendClientMessageToAll(COLOR_NICERED,string); new y, m, d; new h,mi,s; getdate(y,m,d); gettime(h,mi,s); format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Unbanned the Account of %s (%s)",d,m,y,h,mi,s,name,acct,dini_Get(ipFILE,"NameIp")); LoginLog(string); return 1; } dcmd_oban(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] < 5) return 0; new rcmsg[80], acct[24], file[64],name[24],string[128],otherfile[64]; GetPlayerName(playerid, name, sizeof(name)); if(sscanf(params, "s", acct)) return SendClientMessage(playerid, COLOR_LIGHTRED, "Usage: /oban <account name>"); format(file, sizeof(file),"LARP/Users/%s.ini", acct); if(!dini_Exists(file)) return SendClientMessage(playerid, COLOR_LIGHTRED,"Error: account doesn't exists!"); dini_IntSet(file, "Banned", 1); format(ipFILE, 128, "LARP/Users/Aliases/%s.txt", acct); format(rcmsg, sizeof(rcmsg), "banip %s", dini_Get(ipFILE,"NameIp")); SendRconCommand(rcmsg); SendRconCommand("reloadbans"); format(string, sizeof(string), "[ADMIN]: %s has Offline Banned The account of %s.", name,acct); ABroadCast(COLOR_LIGHTRED,string, 5); format(string, sizeof(string), "[ADMIN]: IP %s has been added by the ban list by %s.", dini_Get(ipFILE,"NameIp"), name); ABroadCast(COLOR_WHITE,string, 5); format(string, sizeof(string), "* Administrator %s Has Offline Banned the account of %s", name,acct); SendClientMessageToAll(COLOR_NICERED,string); new y, m, d; new h,mi,s; getdate(y,m,d); gettime(h,mi,s); format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Unbanned the Account of %s (%s)",d,m,y,h,mi,s,name,acct,dini_Get(ipFILE,"NameIp")); LoginLog(string); return 1; }