Forum

> > CS2D > Scripts > What is wrong with my classes script
Forums overviewCS2D overview Scripts overviewLog in to reply

English What is wrong with my classes script

13 replies
To the start Previous 1 Next To the start

old Re: What is wrong with my classes script

Alistaire
User Off Offline

Quote
The full script is now there. initArray is there too.
It's just a custom Classes Script.

DebugLua says something about the Addhook command, but it has nothing to do with the script.

EDIT:

The console says:

LUA ERROR: sys/lua/classes.lua:57: attempt to call local 'menu' (a string value)

old Re: What is wrong with my classes script

Bowlinghead
User Off Offline

Quote
user J4x has written
Info.txt has written
Attach @b at the
end of title for a bigger menu.


Its not for longer menus!
It make the menu-gfx bigger! (LOL xD)
Test it!
(I am German, thats the reason, why my english isn't perfect)

old Re: What is wrong with my classes script

Bowlinghead
User Off Offline

Quote
Make the 9. button:
1
2
3
4
-- Team Major
     if (sample.classes.class[id]==9) then
   	sample.classes.classmenu2(id)
	end

And at the beginning the sample.classes.classmenu2!
Example:
1
2
3
function sample.classes.classmenu(id)
     menu(id,"Choose your training2,CLASS|Text,CLASS|Text")
end

old Re: What is wrong with my classes script

Starkkz
Moderator Off Offline

Quote
Try this man:

Spoiler >

old Re: What is wrong with my classes script

Alistaire
User Off Offline

Quote
user Starkkz has written
Try this man:


Thank you very much! The next button works! (Only thing not working is back button.. which should not be a big problem.)

I guess I'll need to ask that next time, but for now

EDIT: I even found out why the next menu didn't work! It seems I've used "Choose your Training 2" at the first menu, and "Choose your Training2" at the second

> Thread closed
edited 1×, last 16.05.11 04:53:58 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview