24.08.2017, 07:02
(
Последний раз редактировалось elpana27; 24.08.2017 в 07:29.
Причина: add
)
#define MaxAdminLevel 10
I defined And this came out
C:\Users\lol\Desktop\zombie\gamemodes\zombie1.pwn( 226) : error 020: invalid symbol name ""
C:\Users\lol\Desktop\zombie\gamemodes\zombie1.pwn( 3285) : error 022: must be lvalue (non-constant)
C:\Users\lol\Desktop\zombie\gamemodes\zombie1.pwn( 4461) : error 022: must be lvalue (non-constant)
C:\Users\lol\Desktop\zombie\gamemodes\zombie1.pwn( 10726) : warning 203: symbol is never used: ""
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
is this
public LoadServerSetttings(name[], value[])
{
INI_Int("AutoLogin", AutoLogin);
INI_Int("DetectPausers", DetectPausers);
INI_Int("MustRegister", MustRegister);
INI_Int("MaxPing", MaxPing);
INI_Int("AntiSpam", AntiSpam);
INI_Int("PmDialog", PmDialog);
INI_Int("AntiWeaponHack", AntiWeaponHack);
INI_Int("MaxLevels", MaxAdminLevel);
INI_Int("ForbiddenNamesKick", ForbiddenNamesKick);
INI_Int("PartNamesKick", KickPartNicks);
INI_Int("AntiBadWords", AntiForbiddenWords);
INI_Int("AntiAdvertisements", AntiAdv);
INI_Int("AntiBanEvade", AntiBanEvade);
INI_Int("AdminImmunity", AdminImmunity);
INI_Int("AdminReadPms", ShowPmstoAdmins);
INI_Int("AdminReadCmds", ReadCommands);
INI_Int("AntiCheatbans", AntiCheatBans);
INI_Int("AllowChangeName", AllowChangeNick);
return 1;
}
stock PrintConfiguration()
{
printf(" [LADMIN] Auto login %d",AutoLogin);
printf(" [Admin] Must register %d",MustRegister);
printf(" [Admin] Detect pausers %d",DetectPausers);
printf(" [Admin] MaxPing %d",MaxPing);
printf(" [Admin] AntiSpam %d",AntiSpam);
printf(" [Admin] PM Dialog %d",PmDialog);
printf(" [Admin] AntiWeaponHack %d",AntiWeaponHack);
printf(" [Admin] MaxAdminLevel %d",MaxAdminLevel);
printf(" [Admin] Anti Bad Words %d",AntiForbiddenWords);
printf(" [Admin] AntiBanEvade %d",AntiBanEvade);
printf(" [Admin] Anti Advertise %d",AntiAdv);
printf(" [Admin] AdminImmunity %d",AdminImmunity);
printf(" [Admin] ShowPmstoAdmins %d",ShowPmstoAdmins);
printf(" [Admin] ReadCommands %d",ReadCommands);
printf(" [Admin] AntiCheatBans %d",AntiCheatBans);
printf(" [Admin] Allow changename %d",AllowChangeNick);
printf(" [Admin] ForbiddenNamesKick %d",ForbiddenNamesKick);
printf(" [Admin] PartNamesKick %d",KickPartNicks);
return 1;
}
stock ServSettings(playerid)
{
new temp[140],Jfile[100];
format(Jfile,sizeof(Jfile),"JLadmin/Settings/settings.cfg");
if(!fexist(Jfile)) return SendClientMessage( playerid, red, "No file/Path found!" );
strdel(VLstring,0,850);
format(temp,sizeof(temp),"Server AutoLogin: %d\nDetect pausers: %d\nMust register: %d\nServer Max Ping: %d\nAnti spam: %d\nAnti weapon hack: %d\n",AutoLogin,DetectPausers,MustRegister,MaxPing ,AntiSpam,AntiWeaponHack);
strcat(VLstring, temp, sizeof(VLstring));
format(temp,sizeof(temp),"Anti bad words: %d\nForbidden names kick: %d\nPart names Kick: %d\nAnti Advertisements: %d\nAnti ban evade: %d\n",AntiForbiddenWords,ForbiddenNamesKick,KickPa rtNicks,AntiAdv,AntiBanEvade);
strcat(VLstring, temp, sizeof(VLstring));
format(temp,sizeof(temp),"Max Admin Levels: %d\nAdmin Immunity: %d\nAdmin Read PMs: %d\nAdmin Read cmds: %d\nPM dialog: %d\nAnti Cheat Bans: %d\nAllow Change Nick: %d\n",MaxAdminLevel,AdminImmunity,ShowPmstoAdmins, ReadCommands,PmDialog,AntiCheatBans,AllowChangeNic k);
strcat(VLstring, temp, sizeof(VLstring));
format(temp,sizeof(temp),"Forbidden Weapons\nForbidden Names\nForbidden Part Nicks\nBad words\nReload Settings");
strcat(VLstring, temp, sizeof(VLstring));
ShowPlayerDialog(playerid,JDIALOGS+52,DIALOG_STYLE _LIST,"Server Settings",VLstring,"Select","Cancel");
strdel(VLstring,0,850);
return 1;
}
I defined And this came out
C:\Users\lol\Desktop\zombie\gamemodes\zombie1.pwn( 226) : error 020: invalid symbol name ""
C:\Users\lol\Desktop\zombie\gamemodes\zombie1.pwn( 3285) : error 022: must be lvalue (non-constant)
C:\Users\lol\Desktop\zombie\gamemodes\zombie1.pwn( 4461) : error 022: must be lvalue (non-constant)
C:\Users\lol\Desktop\zombie\gamemodes\zombie1.pwn( 10726) : warning 203: symbol is never used: ""
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
is this
public LoadServerSetttings(name[], value[])
{
INI_Int("AutoLogin", AutoLogin);
INI_Int("DetectPausers", DetectPausers);
INI_Int("MustRegister", MustRegister);
INI_Int("MaxPing", MaxPing);
INI_Int("AntiSpam", AntiSpam);
INI_Int("PmDialog", PmDialog);
INI_Int("AntiWeaponHack", AntiWeaponHack);
INI_Int("MaxLevels", MaxAdminLevel);
INI_Int("ForbiddenNamesKick", ForbiddenNamesKick);
INI_Int("PartNamesKick", KickPartNicks);
INI_Int("AntiBadWords", AntiForbiddenWords);
INI_Int("AntiAdvertisements", AntiAdv);
INI_Int("AntiBanEvade", AntiBanEvade);
INI_Int("AdminImmunity", AdminImmunity);
INI_Int("AdminReadPms", ShowPmstoAdmins);
INI_Int("AdminReadCmds", ReadCommands);
INI_Int("AntiCheatbans", AntiCheatBans);
INI_Int("AllowChangeName", AllowChangeNick);
return 1;
}
stock PrintConfiguration()
{
printf(" [LADMIN] Auto login %d",AutoLogin);
printf(" [Admin] Must register %d",MustRegister);
printf(" [Admin] Detect pausers %d",DetectPausers);
printf(" [Admin] MaxPing %d",MaxPing);
printf(" [Admin] AntiSpam %d",AntiSpam);
printf(" [Admin] PM Dialog %d",PmDialog);
printf(" [Admin] AntiWeaponHack %d",AntiWeaponHack);
printf(" [Admin] MaxAdminLevel %d",MaxAdminLevel);
printf(" [Admin] Anti Bad Words %d",AntiForbiddenWords);
printf(" [Admin] AntiBanEvade %d",AntiBanEvade);
printf(" [Admin] Anti Advertise %d",AntiAdv);
printf(" [Admin] AdminImmunity %d",AdminImmunity);
printf(" [Admin] ShowPmstoAdmins %d",ShowPmstoAdmins);
printf(" [Admin] ReadCommands %d",ReadCommands);
printf(" [Admin] AntiCheatBans %d",AntiCheatBans);
printf(" [Admin] Allow changename %d",AllowChangeNick);
printf(" [Admin] ForbiddenNamesKick %d",ForbiddenNamesKick);
printf(" [Admin] PartNamesKick %d",KickPartNicks);
return 1;
}
stock ServSettings(playerid)
{
new temp[140],Jfile[100];
format(Jfile,sizeof(Jfile),"JLadmin/Settings/settings.cfg");
if(!fexist(Jfile)) return SendClientMessage( playerid, red, "No file/Path found!" );
strdel(VLstring,0,850);
format(temp,sizeof(temp),"Server AutoLogin: %d\nDetect pausers: %d\nMust register: %d\nServer Max Ping: %d\nAnti spam: %d\nAnti weapon hack: %d\n",AutoLogin,DetectPausers,MustRegister,MaxPing ,AntiSpam,AntiWeaponHack);
strcat(VLstring, temp, sizeof(VLstring));
format(temp,sizeof(temp),"Anti bad words: %d\nForbidden names kick: %d\nPart names Kick: %d\nAnti Advertisements: %d\nAnti ban evade: %d\n",AntiForbiddenWords,ForbiddenNamesKick,KickPa rtNicks,AntiAdv,AntiBanEvade);
strcat(VLstring, temp, sizeof(VLstring));
format(temp,sizeof(temp),"Max Admin Levels: %d\nAdmin Immunity: %d\nAdmin Read PMs: %d\nAdmin Read cmds: %d\nPM dialog: %d\nAnti Cheat Bans: %d\nAllow Change Nick: %d\n",MaxAdminLevel,AdminImmunity,ShowPmstoAdmins, ReadCommands,PmDialog,AntiCheatBans,AllowChangeNic k);
strcat(VLstring, temp, sizeof(VLstring));
format(temp,sizeof(temp),"Forbidden Weapons\nForbidden Names\nForbidden Part Nicks\nBad words\nReload Settings");
strcat(VLstring, temp, sizeof(VLstring));
ShowPlayerDialog(playerid,JDIALOGS+52,DIALOG_STYLE _LIST,"Server Settings",VLstring,"Select","Cancel");
strdel(VLstring,0,850);
return 1;
}