Results 1 to 6 of 6

Thread: need help

  1. #1
    Join Date
    May 2012
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default need help

    Hi everyone. The problem is that i can't use SetAngle in my script, Always giving mismatch error. But i used it correctly. Please help me.

  2. #2
    Join Date
    Jul 2009
    Location
    Australia
    Posts
    667
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Do you mind posting the actual error and what you are typing in for the SetAngle?
    You should be using something like
    Simba Code:
    SetAngle(0);

    ~Caotom

  3. #3
    Join Date
    May 2012
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No, i am using SetAngle(false);

  4. #4
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Quote Originally Posted by bustingbuster View Post
    No, i am using SetAngle(false);
    Always read the parameter: procedure SetAngle(Angle: Integer);
    U should input an integer, to make it clearer use srl constants:
    SRL_ANGLE_HIGH = 0;
    SRL_ANGLE_LOW = 1;
    SRL_ANGLE_NONE = 2;

  5. #5
    Join Date
    May 2012
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No lol, I think we no need to keep =1, As SetAngle(False) is changed to SetAngle(SRL_ANGLE_LOW). Thats all. I got the answer from IRC chat.

  6. #6
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Quote Originally Posted by bustingbuster View Post
    No lol, I think we no need to keep =1, As SetAngle(False) is changed to SetAngle(SRL_ANGLE_LOW). Thats all. I got the answer from IRC chat.
    Oh im not saying that, the formal way of doing it is SetAngle(1), but since the include created the constants which are assigned to the corresponding integers u can just use the constants (longer but clearer for other scripters to see what u are doing)

    Its like how we always use GameTab(tab_Inv) rather than GameTab(25), which is easier but confusing.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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