SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 11/07/2016, 11:19 PM   #11
Markdrifter18
Little Clucker
 
Markdrifter18's Avatar
 
Join Date: Jul 2016
Posts: 20
Reputation: 4
Default Re: samp-observer.inc - Observe variables for changes

This release is awesome, good work!
__________________
Quote:
Originally Posted by Thanush
You rep me i rep you simple case ..can you mate?
Do not PM me for this, earn reputation by yourself.
Markdrifter18 is offline   Reply With Quote
Old 11/07/2016, 11:20 PM   #12
PT
Godfather
 
PT's Avatar
 
Join Date: Nov 2012
Location: Europe
Posts: 7,180
Reputation: 803
Default Re: samp-observer.inc - Observe variables for changes

Without your work this communitty cant be so good how it is.

Thanks for all and Nice job
PT is offline   Reply With Quote
Old 12/07/2016, 02:23 AM   #13
Slice
High-roller
 
Join Date: Mar 2008
Posts: 1,831
Reputation: 1607
Default Re: samp-observer.inc - Observe variables for changes

I added a new feature called dynamic variables.

Example:
pawn Code:
new Var1, Var2;

// The value of DynVar will update every time Var1 or Var2 change
dynamic DynVar <- (Var1, Var2) {
    return Var1 * Var2;
}

main() {
    Var1 = 5;
    Var2 = 10;

    // Output: DynVar is 50
    printf("DynVar is %d", DynVar);
}

Pure magic!
Slice is offline   Reply With Quote
Old 12/07/2016, 02:29 AM   #14
SyS
High-roller
 
SyS's Avatar
 
Join Date: Oct 2015
Posts: 1,944
Reputation: 504
Default Re: samp-observer.inc - Observe variables for changes

this would help many
SyS is offline   Reply With Quote
Old 18/07/2016, 12:42 AM   #15
Kamper
Guest
 
Posts: n/a
Default Re: samp-observer.inc - Observe variables for changes

AngularJS feelings. I've never thought that observer logic would be available in SA-MP. Great job!
  Reply With Quote
Old 19/07/2016, 01:57 PM   #16
Crayder
Banned
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,324
Reputation: 652
Default Re: samp-observer.inc - Observe variables for changes

This is awesome. It'll be super useful for things like that dynamic variable feature. I've already came up with a few ideas.
Crayder is offline   Reply With Quote
Old 19/07/2016, 04:49 PM   #17
DRIFT_HUNTER
High-roller
 
Join Date: Oct 2009
Posts: 2,120
Reputation: 211
Default Re: samp-observer.inc - Observe variables for changes

Great for logging, debugging and some systems like achievements...Very useful for many, many things!
Thx for such release
DRIFT_HUNTER is online now   Reply With Quote
Old 19/07/2016, 06:47 PM   #18
Logic_
Banned
 
Join Date: Jun 2015
Posts: 1,508
Reputation: 305
Default Re: samp-observer.inc - Observe variables for changes

You are a code magician Slice, good work like always, +repped.
Logic_ is offline   Reply With Quote
Old 19/07/2016, 07:21 PM   #19
Admigo
High-roller
 
Admigo's Avatar
 
Join Date: Oct 2010
Location: The Netherlands
Posts: 1,840
Reputation: 297
Default Re: samp-observer.inc - Observe variables for changes

Great work slice. Another great release of you. Thank you so much, have a cookie+1.
__________________
Follow me on Instagram @brandonvanommen
Admigo is offline   Reply With Quote
Old 08/05/2020, 07:14 AM   #20
Sasino97
High-roller
 
Sasino97's Avatar
 
Join Date: Dec 2010
Location: Tampa, FL
Posts: 1,413
Reputation: 139
Default Re: samp-observer.inc - Observe variables for changes

Good job! Reminds me of OnPropertyChanged in .NET
Sasino97 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Tutorial] Player Variables vs Normal Variables. Carlton Tutorials 24 09/09/2016 07:19 PM
How to make Y_INI loop through all variables, without knowing the name of the variables? Prostilov Scripting Help 3 31/08/2014 10:24 PM
Global variables or Local variables armyoftwo Help Archive 3 02/10/2010 04:45 PM
New rcon variables in SAMP 0.3. What do they do? KKashimia Server Support 2 10/11/2009 09:03 PM


All times are GMT. The time now is 02:14 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.