Hello, your latest version gives lots of errors when compiling.
Besides, when i try to use godmode or teamswap it says [amx]???!!!.
Can you check the code please.
Thank you for your time
I'm not getting any errors compiling it...
well it says warning, besides try to use amx_swapteam it gives you [amx]???, godmode the same.
Though I'm not sure what you mean by [amx]???, that warning is a loose indentation warning. Means someone pressed tab too many times.
yes loose indentation, when you try to use amx_teamswap it gives you [amx]???? as well as logs error log, same thing with godmode. Try it, maybe its only my plugin problem.
bmann_420
06-09-2007, 15:19
I tested godmode about ermm, 28 times along with the transfer, since I made some adjustments. if your gettin ????'s make sure yoru multilingual is not in Chinese. (double check the .txt, make sure its updated) ANd that 1 Loose Indentation error, is non fixable, trust me I tried. I put 1 tab on that line, i end up with 20 more indentation errors. But anyway, their shouldnt be any issues with this from what your saying. As in their could be issues, but your issues are more on you.
-Make sure you have the New amx_super.txt file
-1 loose indentation error = doesnt do anything to the code whatsoever ina way shape, fashion or form
-The errors your getting in your logs, i need to see them (I dont have any and im even using 3.5 for testing)
Example of Chinese Multilingual:
AMX_SUPER_HEAL_TEAM_CASE2 = [AMXX] ??? %s ?? %d ??? %s ??
AMX_SUPER_HEAL_TEAM_CASE1 = [AMXX] ????? %d ??? %s ??
AMX_SUPER_HEAL_PLAYER_CASE2 = [AMXX] ??? %s ?? %s ???? %d
AMX_SUPER_HEAL_PLAYER_CASE1 = [AMXX] ????? %s ???? %d
AMX_SUPER_HEAL_TEAM_LOG = [AMX_Super] ??: ^"%s<%s>^" ? ^"%s^" ??? %d ???
AMX_SUPER_HEAL_PLAYER_LOG = [AMX_Super] ??: ^"%s<%s>^" ??? %d ???? ^"%s<%s>^"
AMX_SUPER_HEAL_TEAM_MSG = [AMXX] ?? %d ???? %s
AMX_SUPER_HEAL_PLAYER_MSG = [AMXX] ?? %d ???? %s
I dunno if i copied an pasted it right or what, but thats how it came out. (had to copy it to notepad, then paste it to the wordpad for .txt)
Ok, is it ok if i delete all other lang in super.txt and leave only english?
My error logs only amx_super thats it no details. As i said when i use swapteam its says amx????? so i think its language problem.
So can i modify txt and leave only english?
OK, i have modified txt and now its ok. Sorry for the trouble i made.
Thanks for the great plugin.
bmann_420
06-09-2007, 17:31
lol No worries, knew you would figure it out tho :D
this will solve the loose id error
////////////////////////////////////////////////////////////////////////////////////////////////////////////
//ADMIN GODMODE v1.0 by Bo0m!
//Revised some by Doombringer/Deviance
//============================================= ============================================= ================
public admin_godmode(id,level,cid)
{
if (!cmd_access(id,level,cid,3))
return PLUGIN_HANDLED
new arg[32], arg2[8], name2[32]
read_argv(1, arg, 31)
read_argv(2, arg2, 7)
new setting = str_to_num(arg2)
new name[32], authid[36]
get_user_name(id, name2, 31)
get_user_authid(id, authid, 35)
new bool:l_postRound = false;
if(str_to_num(arg2) == 2)
{
arg2 = "1";
l_postRound = true;
}
if (arg[0]=='@')
{
new players[32], inum
if(!(arg[1]=='a' || arg[1]=='A' || arg[1]=='C' || arg[1]=='c' || arg[1]=='T' || arg[1]=='t'))
inum = 0
else
get_players(players,inum,"")
if (inum==0)
{
console_print(id,"%L", LANG_PLAYER, "AMX_SUPER_NO_PLAYERS")
return PLUGIN_HANDLED
}
for(new a=0;a<inum;++a)
{
if((arg[1]=='a' || arg[1]=='A') || (cs_get_user_team(players[a]) == CS_TEAM_T && (arg[1]=='T' || arg[1]=='t')) || (cs_get_user_team(players[a]) == CS_TEAM_CT && (arg[1]=='C' || arg[1]=='c')))
{
set_user_godmode(players[a],str_to_num(arg2))
HasPermGod[players[a]] = l_postRound;
}
}
switch(get_cvar_num("amx_show_activity"))
{
case 2: client_print(0, print_chat, "%L", LANG_PLAYER, "AMX_SUPER_GODMODE_TEAM_CASE2", name, setting, arg[1])
case 1: client_print(0, print_chat, "%L", LANG_PLAYER, "AMX_SUPER_GODMODE_TEAM_CASE1", setting, arg[1])
}
console_print(id, "%L", LANG_PLAYER, "AMX_SUPER_GODMODE_TEAM_MSG", setting, arg[1])
log_amx("%L", LANG_SERVER, "AMX_SUPER_GODMODE_TEAM_LOG", name, authid, setting, arg[1])
}
else
{
new authid2[36];
new player = cmd_target(id, arg, 3)
if(!player)
return PLUGIN_HANDLED
get_user_name(player, name2, 31)
get_user_authid(player, authid2, 35)
set_user_godmode(player,str_to_num(arg2))
HasPermGod[player] = l_postRound;
switch(get_cvar_num("amx_show_activity"))
{
case 2: client_print(0, print_chat, "%L", LANG_PLAYER, "AMX_SUPER_GODMODE_PLAYER_CASE2", name, setting, name2)
case 1: client_print(0, print_chat, "%L", LANG_PLAYER, "AMX_SUPER_GODMODE_PLAYER_CASE1", setting, name2)
}
console_print(id, "%L", LANG_PLAYER, "AMX_SUPER_GODMODE_PLAYER_MSG", setting, name2)
log_amx("%L", LANG_SERVER, "AMX_SUPER_GODMODE_PLAYER_LOG", name, authid, setting, name2, authid2)
}
return PLUGIN_HANDLED
}
One of the cvars don't seem to work. (amx_moneymsg) It says unknown cvar. Any ideas to why?
Exolent[jNr]
06-12-2007, 13:07
its unknown because its never used in the plugin.
im sure it was removed to match the other admin functions :)
bmann_420
06-12-2007, 22:29
HA! Your right, good lookin. I dont think we even need it, but if anybody insists on it, i could add it back in. :D
(its only in the .cfg, my bad)
Exolent[jNr]
06-13-2007, 00:09
lol i didnt bother to look in the config file :P
but yeah you should keep your things straight :D
vBulletin® v3.8.7, Copyright ©2000-2024, vBulletin Solutions, Inc.