GanJaRuleZ Posted March 22, 2012 Share Posted March 22, 2012 Hai allz , I've got this problem : WARNING : Loading script failed: script\client:461: unexpected symbol near 'local' And that line is : local loltext = string.gsub(list,"#%x%x%x%x%x%x","#000000") Ty. Link to comment
Castillo Posted March 22, 2012 Share Posted March 22, 2012 It must be something else, that is just fine. Link to comment
-ffs-Sniper Posted March 22, 2012 Share Posted March 22, 2012 EDIT: Someone was faster than me... There isn't any mistake in that line. There is probably a syntax error in one of the previous lines. Please post them here. Link to comment
GanJaRuleZ Posted March 22, 2012 Author Share Posted March 22, 2012 function draw () list = Numbers[1].." "..Places[1].."/newline/".. (Numbers[2].." "..Places[2].."/newline/").. (Numbers[3].." "..Places[3].."/newline/").. (Numbers[4].." "..Places[4].."/newline/").. (Numbers[5].." "..Places[5].."/newline/").. (Numbers[6].." "..Places[6].."/newline/").. (Numbers[7].." "..Places[7].."/newline/").. (Numbers[8].." "..Places[8].."/newline/").. (Numbers[9].." "..Places[9].."/newline/").. (Numbers[10].." "..Places[10].."/newline/").. (Numbers[11].." "..Places[11].."/newline/").. (Numbers[12].." "..Places[12].."/newline/").. (Numbers[13].." "..Places[13].."/newline/").. (Numbers[14].." "..Places[14].."/newline/").. (Numbers[15].." "..Places[15].."/newline/").. (Numbers[16].." "..Places[16].."/newline/").. (Numbers[17].." "..Places[17].."/newline/").. (Numbers[18].." "..Places[18].."/newline/").. (Numbers[19].." "..Places[19].."/newline/").. (Numbers[20].." "..Places[20].."/newline/").. (Numbers[21].." "..Places[21].."/newline/").. (Numbers[22].." "..Places[22].."/newline/").. (Numbers[23].." "..Places[23].."/newline/").. (Numbers[24].." "..Places[24].."/newline/").. (Numbers[25].." "..Places[25].."/newline/").. (Numbers[26].." "..Places[26].."/newline/").. (Numbers[27].." "..Places[27].."/newline/").. (Numbers[28].." "..Places[28].."/newline/").. (Numbers[29].." "..Places[29].."/newline/").. (Numbers[30].." "..Places[30].."/newline/").. (Numbers[31].." "..Places[31].."/newline/").. (Numbers[32].." "..Places[32].."/newline/").. (Numbers[33].." "..Places[33].."/newline/").. (Numbers[34].." "..Places[34].."/newline/").. (Numbers[35].." "..Places[35].."/newline/").. (Numbers[36].." "..Places[36].."/newline/").. (Numbers[37].." "..Places[37].."/newline/").. (Numbers[38].." "..Places[38].."/newline/").. (Numbers[39].." "..Places[39].."/newline/").. (Numbers[40].." "..Places[40].."/newline/").. (Numbers[41].." "..Places[41].."/newline/").. (Numbers[42].." "..Places[42].."/newline/").. (Numbers[43].." "..Places[43].."/newline/").. (Numbers[44].." "..Places[44].."/newline/").. local loltext = string.gsub(list,"#%x%x%x%x%x%x","#000000") dxDrawColorText(loltext, 14, sH/3-1, sW+1 , sH-1, tocolor(0,0,0,255), TextScale, TextFont , "left", "top") dxDrawColorText(loltext, 14, sH/3, sW+1 , sH, tocolor(0,0,0,255), TextScale, TextFont , "left", "top") dxDrawColorText(loltext, 14, sH/3+1, sW+1 , sH+1, tocolor(0,0,0,255), TextScale, TextFont , "left", "top") dxDrawColorText(loltext, 13, sH/3+1, sW , sH+1, tocolor(0,0,0,255), TextScale, TextFont , "left", "top") dxDrawColorText(loltext, 12, sH/3+1, sW-1 , sH+1, tocolor(0,0,0,255), TextScale, TextFont , "left", "top") dxDrawColorText(loltext, 12, sH/3, sW-1 , sH, tocolor(0,0,0,255), TextScale, TextFont , "left", "top") dxDrawColorText(loltext, 12, sH/3-1, sW-1 , sH-1, tocolor(0,0,0,255), TextScale, TextFont , "left", "top") dxDrawColorText(loltext, 13, sH/3-1, sW , sH-1, tocolor(0,0,0,255), TextScale, TextFont , "left", "top") dxDrawColorText(list, 13, sH/3, sW , sH, tocolor(255,255,255,255), TextScale, TextFont , "left", "top") end This is from Pato's rankingboard , trying to modify it, cuz im making a new gamemode Link to comment
Kenix Posted March 22, 2012 Share Posted March 22, 2012 function draw () list = Numbers[1].." "..Places[1].."/newline/".. (Numbers[2].." "..Places[2].."/newline/").. (Numbers[3].." "..Places[3].."/newline/").. (Numbers[4].." "..Places[4].."/newline/").. (Numbers[5].." "..Places[5].."/newline/").. (Numbers[6].." "..Places[6].."/newline/").. (Numbers[7].." "..Places[7].."/newline/").. (Numbers[8].." "..Places[8].."/newline/").. (Numbers[9].." "..Places[9].."/newline/").. (Numbers[10].." "..Places[10].."/newline/").. (Numbers[11].." "..Places[11].."/newline/").. (Numbers[12].." "..Places[12].."/newline/").. (Numbers[13].." "..Places[13].."/newline/").. (Numbers[14].." "..Places[14].."/newline/").. (Numbers[15].." "..Places[15].."/newline/").. (Numbers[16].." "..Places[16].."/newline/").. (Numbers[17].." "..Places[17].."/newline/").. (Numbers[18].." "..Places[18].."/newline/").. (Numbers[19].." "..Places[19].."/newline/").. (Numbers[20].." "..Places[20].."/newline/").. (Numbers[21].." "..Places[21].."/newline/").. (Numbers[22].." "..Places[22].."/newline/").. (Numbers[23].." "..Places[23].."/newline/").. (Numbers[24].." "..Places[24].."/newline/").. (Numbers[25].." "..Places[25].."/newline/").. (Numbers[26].." "..Places[26].."/newline/").. (Numbers[27].." "..Places[27].."/newline/").. (Numbers[28].." "..Places[28].."/newline/").. (Numbers[29].." "..Places[29].."/newline/").. (Numbers[30].." "..Places[30].."/newline/").. (Numbers[31].." "..Places[31].."/newline/").. (Numbers[32].." "..Places[32].."/newline/").. (Numbers[33].." "..Places[33].."/newline/").. (Numbers[34].." "..Places[34].."/newline/").. (Numbers[35].." "..Places[35].."/newline/").. (Numbers[36].." "..Places[36].."/newline/").. (Numbers[37].." "..Places[37].."/newline/").. (Numbers[38].." "..Places[38].."/newline/").. (Numbers[39].." "..Places[39].."/newline/").. (Numbers[40].." "..Places[40].."/newline/").. (Numbers[41].." "..Places[41].."/newline/").. (Numbers[42].." "..Places[42].."/newline/").. (Numbers[43].." "..Places[43].."/newline/").. (Numbers[44].." "..Places[44].."/newline/") local loltext = string.gsub(list,"#%x%x%x%x%x%x","#000000") dxDrawColorText(loltext, 14, sH/3-1, sW+1 , sH-1, tocolor(0,0,0,255), TextScale, TextFont , "left", "top") dxDrawColorText(loltext, 14, sH/3, sW+1 , sH, tocolor(0,0,0,255), TextScale, TextFont , "left", "top") dxDrawColorText(loltext, 14, sH/3+1, sW+1 , sH+1, tocolor(0,0,0,255), TextScale, TextFont , "left", "top") dxDrawColorText(loltext, 13, sH/3+1, sW , sH+1, tocolor(0,0,0,255), TextScale, TextFont , "left", "top") dxDrawColorTextPuma(loltext, 12, sH/3+1, sW-1 , sH+1, tocolor(0,0,0,255), TextScale, TextFont , "left", "top") dxDrawColorText(loltext, 12, sH/3, sW-1 , sH, tocolor(0,0,0,255), TextScale, TextFont , "left", "top") dxDrawColorText(loltext, 12, sH/3-1, sW-1 , sH-1, tocolor(0,0,0,255), TextScale, TextFont , "left", "top") dxDrawColorText(loltext, 13, sH/3-1, sW , sH-1, tocolor(0,0,0,255), TextScale, TextFont , "left", "top") dxDrawColorText(list, 13, sH/3, sW , sH, tocolor(255,255,255,255), TextScale, TextFont , "left", "top") end .. You forgot remove concat's in line 47.( .. ) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now