scoreboard_add(name,score)
if(!name)return
if(!score)return
if(score >= 1e+20)score = 1e+1000
if(findtext("[scoretext]","[name]"))
var/a
var/n = 0
var/z
var/out
for(var/i = 1, i <= length(scoretext), i++){if(!n){z = length(name) + 1;a = copytext(scoretext, i, i+z);if(a == "[name]="){i += z;n = 1};else{a = copytext(scoretext, i, i+1);out += a}};else{out +="[name]=[num2text(round(score),100)]&";i = findtext3("[scoretext]","&",i);n = 0}}
if(out){scoretext = out;scorelist = params2list(scoretext);return}
scoretext += "[name]=[num2text(round(score),100)]&"
scorelist = params2list(scoretext)
In this scoreboard add can sameone tell me how to make the rever to make it remove a person from it i try alot of ways but or does not remove or removes the wrong score please help me i try everything and i wanst able please
But do not fret, I will give you an example on how to make your own scoreboards:
It's that easy! In fact, if you want to output scores, all you have to do is this:
-- Data