Hi .
I'm editing my script and i was want to add some things and i hade some problems
Problems :
1-Something wrong in admin menu :LUA ERROR: sys/lua/admin-mod.lua:1063: attempt to concatenate field '?' (a nil value)
Thats it ..
The code: http://pastebin.com/PXEDzF17 Admin/mod comment
Added pastebin link /useigor It's angry shit! You aren't scripter. Admin/mod comment
Nothing bad! It works correctly, No work to you?? @ Kirito2K: Yes me can open the admin menu. @ Hellcat: I mean the third one title up will be Admin menu 3 .. Ummm.... ok Admin/mod comment
Lets see.
You're not using code and more tags.
You're not using loops.
Your code doesn't have enough ENDs.
Your code is not tabbed.
Whoever helps you must be insane Hmm... you made OVER 1500 lines of useless code.
1
print('©255255000Script loaded succesfully!')print('©255255000Hooks and Functions Initialising...')
Is this your problem? edited 1×, last 25.04.14 06:44:39 pm
Lua script of the century agree with him 1
2
3
elseif b==9 then
menu(id,"Admin menu 3,God mode|"..godMode[id]..",Admin color chat|"..admin_color_name[color_admin[id]]..",Name mode|"..nameMode[id]..",Admin menu,Admin menu 2")
end
^ Check this line if all of the tables and their keys really exist
Do you even know what "your" code does anyway?
More Because the code tag is not enough has written
msg2(id,"©999999999Script made by : Pirates killer")
GG has written
admincolor[1]="©000555000" ---- Green
admincolor[2]="©15075 0" ---- Brown
admincolor[3]="©155000255" ---- Purple
admincolor[4]="©30 144255" ---- Blue
String concatenation has written
msg(""..admincolor[color_admin[id]]..""..player(id,"name").." (Admin): "..txt)
You've already seen this has written
if (txt=="@kick 32") then
parse ('kick 32')
end
Wow. Such Function. Much If. Wow has written
function player(id, value)
value = string.lower(value)
if _player(id, "ip") == "0.0.0.0" and value == "usgn" then
return 1
end
return _player(id, value)
end
I lol'd.
I don't want to double post,so I will just say that I agree with @ Rainoth: .
Also, @ VADemon: gave you examples of how to use them. Next time don't make us scroll so much. DC Admin Offline
Useless thousands lines (2500+), it is so inefficient. Also nothing wrong with your hooks. It seems nameMode[id] returning no value when you call it at line 1063:
menu(id,"Admin menu 3,God mode|"..godMode[id]..",Admin color chat|"..admin_color_name[color_admin[id]]..",Name mode|"..nameMode[id]..",Admin menu,Admin menu 2")
It looks like after you create nameMode table at line 35, you didn't change the value after player joins like godMode does. Your code at line 1074 and 1077 wrong because of this mistake. nameMode containing no value and you want to compare it with number while it is nil. @ DC: Sry but this what you call him loop , will i don't understand it ..
By the way i fixed it sry for your time .