Results 1 to 5 of 5

Thread: Help..! how to ADD points to a player

  1. #1
    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

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

    or addscore 2000

    did that help ?

    RED

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


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

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

  4. #4
    </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...


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

    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)

  5. #5
    Yes, I am finding the ForceEnd command does not work, at least for me.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •