SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 27/01/2019, 01:46 PM   #1
Wajttachu
Little Clucker
 
Join Date: Oct 2018
Location: Belgrade, Serbia
Posts: 20
Reputation: 0
Default Question: Which callback is being FIRST executed??

I'm wondering what callback is first launching when I start server?
Is it OnGameModeInit()
I'm 99% sure that main() is being executed last??
Thanks :_)
Wajttachu is offline   Reply With Quote
Old 27/01/2019, 04:11 PM   #2
Wajttachu
Little Clucker
 
Join Date: Oct 2018
Location: Belgrade, Serbia
Posts: 20
Reputation: 0
Default Re: Question: Which callback is being FIRST executed??

Quote:
Originally Posted by ****** View Post
Test it?
I think its OnGameModeInit, i'm not sureee xDDD
__________________
Quote:
Originally Posted by Wajttachu View Post
If you do not know basics:
Hire scripter for money
...or if you are "poor", knowledge is free:
https://wiki.sa-mp.com/wiki/Scripting_Basics
Do not expect that someone would do these free, even if its 5min job
Wajttachu is offline   Reply With Quote
Old 27/01/2019, 04:18 PM   #3
Bolex_
Gangsta
 
Bolex_'s Avatar
 
Join Date: Aug 2015
Location: Croatia.
Posts: 586
Reputation: 124
Default Re: Question: Which callback is being FIRST executed??

The main function, used once when the server loads.

Code:
main( ){ }
callback gets called when the server initializes the gamemode.

Code:
public OnGameModeInit()
Bolex_ is offline   Reply With Quote
Old 27/01/2019, 05:12 PM   #4
Wajttachu
Little Clucker
 
Join Date: Oct 2018
Location: Belgrade, Serbia
Posts: 20
Reputation: 0
Default Re: Question: Which callback is being FIRST executed??

I didn't meant only these two but whole library but thx
__________________
Quote:
Originally Posted by Wajttachu View Post
If you do not know basics:
Hire scripter for money
...or if you are "poor", knowledge is free:
https://wiki.sa-mp.com/wiki/Scripting_Basics
Do not expect that someone would do these free, even if its 5min job
Wajttachu 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
mysql_pquery question on callback being called. AroseKhanNiazi Scripting Help 4 01/07/2016 04:35 PM
Callback's Instruction block isn't executed jujuv Scripting Help 4 27/02/2012 06:36 PM
Getting how much time a callback is executed in Skylar Paul Help Archive 2 07/05/2011 12:41 AM
[Question] Class Selection Callback silvan Help Archive 1 09/10/2009 03:49 PM


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


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