Results 1 to 10 of 599

Thread: SAPP

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    suum cuique sehe's Avatar
    Join Date
    Aug 2011
    Location
    Hungary
    Posts
    217

    Re: SAPP

    Use Sapp's init.txt for that?

    And it's because you have to specify which player's variable you want to set, like 'var_set playerhunted 1 $n'
    Perhaps I forgot to mention it, hehe.

  2. #2

    Re: SAPP

    Quote Originally Posted by sehe View Post
    Use Sapp's init.txt for that?

    And it's because you have to specify which player's variable you want to set, like 'var_set playerhunted 1 $n'
    Perhaps I forgot to mention it, hehe.
    I forgot sapp had its own init :v

    Also, I've encountered some strange bug pertaining to maths.
    Using what you wrote, when the player is near 0 health (under 0.1 or 0.01), it becomes some absurd number like 200. That is, the converted variable, not the actual $hp.

    Also also, will it be possible to perform arithmetic between two variables and not just a variable and a number? I've found myself trying to calculate the difference in health when a player's health changes, but the result is always 0. I could use a counter variable, but I'm not sure I want to write an event loop every time somebody takes damage.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Bookmarks

Posting Permissions

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