SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Discussion

Reply
 
Thread Tools Display Modes
Old 29/12/2017, 08:56 PM   #21
Dutheil
Gangsta
 
Dutheil's Avatar
 
Join Date: Jul 2014
Location: France
Posts: 507
Reputation: 221
Default Re: #emit Discussion

@******: Yes it's good, I'm going to look the codes to understand the logic.
PHP Code:
#include "amx\frame_info"

forward FirstCustomFunction();
forward SecondCustomFunction();

main()
{
    
FirstCustomFunction();
}

public 
FirstCustomFunction()
{
    
SecondCustomFunction();
}

public 
SecondCustomFunction()
{
    new 
dest[32]; 
    
GetPublicNameFromAddress(GetFrameFunction(GetCurrentFramePreviousFrame()), dest);
    print(
dest); // FirstCustomFunction
    
GetPublicNameFromAddress(GetCurrentFrameFunction(), dest);
    print(
dest); // SecondCustomFunction

__________________
#PrayForFrenchForum
GitHub

pawn Code:
print({1466458484, 543452960, 2037347616, 1952999790, 1797286260, 544694643, 543649646, 1851859053, 1634428192, 1056964608});
Dutheil 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
when should #emit be used sammp Scripting Help 3 15/11/2014 10:49 AM
@emit Slice Discussion 4 16/04/2013 06:44 PM
Emit Help Snir_sofer Scripting Help 2 25/09/2012 06:54 PM
#emit rVar Scripting Help 2 08/09/2012 07:26 PM
Help with #emit _Petrol_ Scripting Help 0 23/08/2012 04:54 PM


All times are GMT. The time now is 10:04 AM.


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