Jump to content
Sign in to follow this  
Flyingdub

Help..! how to ADD points to a player

Recommended Posts

Hi..

I'm trying to add some poitns to a player that go throu a trigger but..; it doesn't work...

I stil have the same error message :

'_score = score _this |#|':error type array, expected object

<null>,<null>

here is the script in my "score.sqs" file :

ScoreScript by Shirson

;----------------------------------------------

_Pl = _this

_name = name _Pl

_Max = 10

_Pl addscore 1 ;

_score = score _Pl;

? _score >= _Max : Goto #End_mission

hint format["%1, %2", _score, _name]

~1

exit

#end_mission

hintC format["Winner! %1, %2", _score, _name]

ForceEnd; exit

;----------------------------------------------

Help please...

FlyingDub

Share this post


Link to post
Share on other sites

hmm i think you can just use the addrating 2000 type command in the init feild

or addscore 2000

did that help ?

RED

Share this post


Link to post
Share on other sites

thanks for your idea RED but nothing happends using addscore or addrating...

confused.gif

How do they do to add point in sector_control to add point when flag is taken confused.gif

HEEEEEELLLPP pleaze .. i'm looking for the solution for more than 1 week now... aarrghh...

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">Quote: from Flyingdub on 8:05 pm on Nov. 11, 2001

thanks for your idea RED but nothing happends using addscore or addrating...

confused.gif

How do they do to add point in sector_control to add point when flag is taken confused.gif

HEEEEEELLLPP pleaze .. i'm looking for the solution for more than 1 week now... aarrghh...<span id='postcolor'>

Sorry man, i cant send it early - weekend.

Place trigger, for add score.

Repeatly

OnActivation write

[thislist] exec "score.sqs"

Place new triger anywhere

A&B = 0

GameLogic

End#1

remove this and write GMO

Score.sqs

;------------------------------------------------

_pl = _this select 0

"_x AddRating 1" ForEach _pl

_count=0

#loop

~0.01

? _count > (count _pl)-1 : exit

_sc = rating (_pl select _count)

_nm = name (_pl select _count)

? _sc >= 3: goto "mEND" ; Change for other number, if u want

hint format["%2 - Score %1",_sc,_nm]

_count= _count + 1

goto "loop"

#mEND

Gmo=true

exit

;------------------------------------------------

Enjoy.

P.S. Score command NOT WORKED! In debriefing, on right page "Player score" used non score, but RATING!.

2 All : For score operate use Rating and AddRating.

P.P.S. ForceEnd command not worked too.

(Edited by Shirson at 3:49 pm on Nov. 12, 2001)

(Edited by Shirson at 10:33 pm on Nov. 12, 2001)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×