Forum

> > CS2D > Scripts > Help with these!
Forums overviewCS2D overview Scripts overviewLog in to reply

English Help with these!

1 reply
To the start Previous 1 Next To the start

old Help with these!

Dovahkin
User Off Offline

Quote
Ive got a problem Sir's,ive got a problem called!

>then expected near '-'


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
addhook("serveraction","server")
function server(id,a)
	if a==1 then
		menu(id,"Drinks Menu,Juggernog Cost:12000$|Put 50% of 

health,Speed Cola Cost:15000$|Makes your Movement Fast A little,Double Tap Root 

Beer Cost:16000$|Gives You a Weapon,Quick Revival! Cost:5000$|Makes Double Tap 

Root Beer Strong!")
	end
end

addhook("menu","menus")
function menus(id,t,b)
if t=="Drinks Menu" then
if b==1 and player(id,"money") =>12000 then
parse("setmaxhealth "..id.." 150")
msg("Ahhhhhhh....The one i wanted!")
parse('hudtxt2 '..id..' 5 "©160160255You Got: Juggernog +" 42 400')
parse("setmoney "..id.." "..player(id,"money")-12000)
elseif b==2 and player(id,"money") =>15000 then
parse("speedmod "..id.." 20")
msg("I feel Like flash!")
parse('hudtxt2 '..id..' 5 "©160160255You Got: Speed Cola S!" 42 500')
parse("setmoney "..id.." "..player(id,"money")-15000)
elseif b==3 and player(id,"money") =>16000 then
parse("equip "..id.." 33")
msg("Ahhhhhh....A a Nico Weapon!")
parse("setmoney "..id.." "..player(id,"money")-16000)
parse('hudtxt2 '..id..' 5 "©160160255You Got: Double Tap Root Beer >>" 42 600')
elseif b==4 and player(id,"money") =>5000 then
parse("mp_wpndmg AUG 110")
msg("Wow This Gun got golden bullets!")
parse('hudtxt2 '..id..' 5 "©160160255You Got: Quick Revival!" 42 700')
parse("setmoney "..id.." "..player(id,"money")-5000)
end
end
end

old Re: Help with these!

Banaan
User Off Offline

Quote
For God's sake, indent all of your code!

It's really simple: you're missing a 'then' somewhere near a dash (-) (or maybe it's a minus sign)

Just go over your code once again and find the missing 'then'.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview