PDA

View Full Version : Help..! how to ADD points to a player



Flyingdub
Nov 10 2001, 13:11
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

RED
Nov 10 2001, 14:16
hmm i think you can just use the addrating 2000 type command in the init feild

or addscore 2000

did that help ?

RED

Flyingdub
Nov 11 2001, 11:05
thanks for your idea RED but nothing happends using addscore or addrating...

http://www.flashpoint1985.com/ikonboard3/non-cgi/emoticons/confused.gif
How do they do to add point in sector_control to add point when flag is taken http://www.flashpoint1985.com/ikonboard3/non-cgi/emoticons/confused.gif

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

Shirson
Nov 12 2001, 06:45
</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...

http://www.flashpoint1985.com/ikonboard3/non-cgi/emoticons/confused.gif
How do they do to add point in sector_control to add point when flag is taken http://www.flashpoint1985.com/ikonboard3/non-cgi/emoticons/confused.gif

HEEEEEELLLPP pleaze .. i'm looking for the solution for more than 1 week now... aarrghh...[/QUOTE]<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)

Thundercok
Nov 19 2001, 01:22
Yes, I am finding the ForceEnd command does not work, at least for me.