ID:179450
 
I need help with setting up a rateing thing for the arena, this is what i did.

mob/proc/ArenaDeathCheck()
if(ArenaHP <= 0)
world << "ARENA [usr] has defeted [src]!!"
usr.exp +=50
usr.verbs -=/mob/proc/attack2
usr.verbs += /mob/verb/Attack
src.verbs += /mob/verb/Attack
usr.wealth+=src.wealth
usr << "You got [src.wealth] from [src]'s body!"
src.wealth = 0
usr.loc = locate(16,1,1)
src.density=0
src.overlays+= 'halo.dmi'
src.verbs -= /mob/proc/attack2
src.loc = locate(4,4,5)
report_scores()


proc/report_scores()
var/scores[0]

scores["[src]"] = 0
scores["[usr]"] = 1

byondhub.ReportScores(scores)



And the error i get is

AshesThroughAshes.dm:735:error:byondhub.ReportScores:bad var


thanx
I need help with setting up a rateing thing for the arena, this is what i did.

mob/proc/ArenaDeathCheck()
if(ArenaHP <= 0)
world << "ARENA [usr] has defeted [src]!!"
usr.exp +=50
usr.verbs -=/mob/proc/attack2
usr.verbs += /mob/verb/Attack
src.verbs += /mob/verb/Attack
usr.wealth+=src.wealth
usr << "You got [src.wealth] from [src]'s body!"
src.wealth = 0
usr.loc = locate(16,1,1)
src.density=0
src.overlays+= 'halo.dmi'
src.verbs -= /mob/proc/attack2
src.loc = locate(4,4,5)
report_scores()


proc/report_scores()
var/scores[0]

scores["[src]"] = 0
scores["[usr]"] = 1

byondhub.ReportScores(scores)



And the error i get is

AshesThroughAshes.dm:735:error:byondhub.ReportScores:bad var


thanx
In response to dbz73
I WAS going to help, but not after that bump, and cross post.
In response to Nadrew
o ok, sorry for the bump, but about cross post... im not sure what you mean by that, if you mean me postion on code problems i posted it there after here because i realize i should probly have put it there because it was a problem with my code.