Forum

> > CS2D > General > Need some help with source
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Need some help with source

3 replies
To the start Previous 1 Next To the start

old Need some help with source

Nem
User Off Offline

Quote
Hello ppl! i creating some game and using the cs2d sources, and i need some help with buy menu, i set the:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
;10 - Buy
		Case 10
			Color 255,255,0
			Text 0,y,"Buy Menu"
			Color 255,255,255
			y=y+15: Text 170,y,weapon_price(1)
			y=y+15: Text 170,y,weapon_price(10)
			y=y+15: Text 170,y,weapon_price(11)
			y=y+15: Text 170,y,weapon_price(30)
			y=y+15: Text 170,y,weapon_price(45)
			Color 255,255,255
			y=15:	Text 0,y,"1. "+weapon_name$(1)
			y=y+15: Text 0,y,"2. "+weapon_name$(11)
			y=y+15: Text 0,y,"3. "+weapon_name$(10)
			y=y+15: Text 0,y,"4. "+weapon_name$(30)
			y=y+15: Text 0,y,"5. "+weapon_name$(45)
			y=y+30: Text 0,y,"6. Primary Ammo"
			y=y+15: Text 0,y,"7. Secondary Ammo"
			y=y+30: Text 0,y,"0. Cancel"
but when i press "2" game still open a
1
2
3
4
5
6
7
8
9
10
11
;12 - Buy - Shotgun
		;Case 12
		;	Color 255,255,0
		;			Text 0,y,"Buy Shotgun"
		;			Text 170,y,"$ Cost"
		;	y=y+15: Text 170,y,weapon_price(10)
		;	y=y+15: Text 170,y,weapon_price(11)
		;	Color 255,255,255
		;	y=15:	Text 0,y,"1. "+weapon_name$(10)
	    ;	y=y+15: Text 0,y,"2. "+weapon_name$(11)
		;
i need a one buy menu without sub menu's like a shotguns or rifles.
Help please!

old Re: Need some help with source

SQ
Moderator Off Offline

Quote
Omg.
Its so easy.
Btw there is 2 functions for buying menu.
Other function aplies keys to menus like 1,2,3,5...
edited 2×, last 18.06.09 05:23:04 pm

old Re: Need some help with source

Nem
User Off Offline

Quote
thx, i'll try.
and i got a b-i-i-i-i-i-i-g problem, the cs2d complied from source dont work online i cant connect to my friend's server and he cant connect to me, how fix it ?
And may u pls give me an example ? i am noob in blitz basic

old Re: Need some help with source

SQ
Moderator Off Offline

Quote
Nemesis has written
thx, i'll try.
and i got a b-i-i-i-i-i-i-g problem, the cs2d complied from source dont work online i cant connect to my friend's server and he cant connect to me, how fix it ?
And may u pls give me an example ? i am noob in blitz basic

Send posts in PM. Thats not a place for Blitz programing questions.
You should remove some lines to conect to the server.
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview