Line 15: | Line 15: | ||
}} | }} | ||
− | {{ScriptFunction|void|FinishActivity|(int activityId, float score | + | {{ScriptFunction|void|FinishActivity|(int activityId, float score);|Start an activity with its id.|5= |
Space.Activity.FinishActivity(99956,100,0,function (rank)<br> | Space.Activity.FinishActivity(99956,100,0,function (rank)<br> | ||
Space.Log(rank.Level)<br> | Space.Log(rank.Level)<br> |
Start an activity with its id.
Get the leader board of an activity.
for i=1,#res do
Space.Log(res[i].Rank.." Score "..res[i].Score.." Username "..res[i].Username)
end
end)
Start an activity with its id.
Space.Log(rank.Level)
end)
|