SA-MP Forums

Go Back   SA-MP Forums > Members List

Slice Reputation above 1000 pointsSlice Reputation above 1000 pointsSlice Reputation above 1000 pointsSlice Reputation above 1000 pointsSlice Reputation above 1000 pointsSlice Reputation above 1000 pointsSlice Reputation above 1000 pointsSlice Reputation above 1000 pointsSlice Reputation above 1000 pointsSlice Reputation above 1000 pointsSlice Reputation above 1000 points

Slice Slice is offline

High-roller

Visitor Messages

Showing Visitor Messages 1 to 10 of 621
  1. Darius
    28/06/2016 06:48 PM
    Darius
  2. Dutheil
    26/06/2016 02:09 PM
    Dutheil
    Why so much wickedness ?
  3. Dutheil
    24/06/2016 08:48 PM
    Dutheil
    Ok, I'm noob. I had forgotten the previous frame pointer is stored at *(data + frm)
    So just -> #emit LOAD.S.pri 0
  4. Dutheil
    24/06/2016 07:45 PM
    Dutheil
    No, I've tested and when I add some variable(s) in main the next frame pointer won't be the same as if there has one variable.

    So look this example :
    Code:
    main() 
    {
    	new
    		a;
    		
    	#emit LCTRL 5
    	#emit STOR.S.pri a
    	
    	printf("%d", a); // 16392
    	
    	printf("%d", GetCurrentFramePointer()); // 16376
    }
    
    stock GetCurrentFramePointer() 
    {
      	#emit LCTRL 5
    	#emit RETN
    	
    	return 0;
    }

    And if I add a second variable :
    Code:
    main() 
    {
    	new
    		a,
    		b;
    		
    	#emit LCTRL 5
    	#emit STOR.S.pri a
    	
    	printf("%d", a); // 16392
    	
    	printf("%d", GetCurrentFramePointer()); // 16374
    }
    
    stock GetCurrentFramePointer() 
    {
      	#emit LCTRL 5
    	#emit RETN
    	
    	return 0;
    }

    Edit : I discover a thing.
    No matter the variables number, the difference of the values frame pointer's global address is everytime the same (apparently). I found 0x3FEC (16364), do you think to anything ?
  5. Dutheil
    24/06/2016 05:08 PM
    Dutheil
    Hi Slice, I would like to know how can I get the frame pointer of the previous function.
    I don't know how I can explain you, so an example for you :

    Code:
    main()
    {
    	// here a frm
    	
    	func();
    }
    
    func()
    {
    	// here an another frm
    	// I want get in this function, the main()'s frame pointer there
    }
  6. Leni
    18/06/2016 08:31 AM
    Leni
    Hello, I decided to make a samp DM server, I was almost finished 1 server, but it was a harddisk stopped working, I tried to extract the data from the drive but I failed, but I think I will have enough time to do the same server, so I you sir slice wanted to ask whether you might have by any chance some SAMP DM, TDM, Gang Wars GameMode that you do not need, I would be grateful if you would have. Thanks.
  7. Leni
    17/06/2016 10:37 PM
    Leni
    Hello, I decided to make a samp DM server, I was almost finished 1 server, but it was a harddisk stopped working, I tried to extract the data from the drive but I failed, but I think I will have enough time to do the same server, so I you sir slice wanted to ask whether you might have by any chance some SAMP DM, TDM, Gang Wars GameMode that you do not need, I would be grateful if you would have. Thanks.
  8. Freedom.
    12/06/2016 05:47 AM
    Freedom.
    Could you just check your weapon-config include thread? I have a problem with that.
  9. KyleSmith
    03/05/2016 06:59 AM
    KyleSmith
    omg that was agesssss ago! lol
  10. KyleSmith
    19/04/2016 11:57 AM
    KyleSmith
    thanks, i just think the way the weapon is facing vs player location throws people off totally since this lagcomp came into play.

About Me

  • About Slice
    Location
    Sweden

Statistics

Total Posts
Visitor Messages
General Information
  • Last Activity: 01/07/2016 01:15 PM
  • Join Date: 08/03/2008

Friends

Showing Friends 1 to 10 of 90

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


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