SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 06/05/2020, 06:22 AM   #1
Juvanii
Huge Clucker
 
Juvanii's Avatar
 
Join Date: Jun 2014
Location: San Andreas
Posts: 367
Reputation: 21
Default Unused Callbacks

Can i remove the unused callbacks from the script? does it effect on the server or crash it ?

For example i don't have any code under OnVehicleSpawn, can i remove it, and what would be called when a vehicle spawns while this callback is not found ?

Share your knowledge.

Thank You
__________________
Juvanii is offline   Reply With Quote
Old 06/05/2020, 10:20 AM   #2
Calisthenics
High-roller
 
Join Date: May 2018
Posts: 1,228
Reputation: 205
Default Re: Unused Callbacks

Yes, you can. They are called only when they are defined in the script.
__________________
Calisthenics is offline   Reply With Quote
Old 07/05/2020, 04:34 AM   #3
Juvanii
Huge Clucker
 
Juvanii's Avatar
 
Join Date: Jun 2014
Location: San Andreas
Posts: 367
Reputation: 21
Default Re: Unused Callbacks

Quote:
Originally Posted by Calisthenics View Post
Yes, you can. They are called only when they are defined in the script.
Thank you
__________________
Juvanii 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
callbacks.pwn(1213) : warning 213: tag mismatch callbacks.pwn(1217) : warning 213: tag mismatch callbacks.pwn(1221) : wa Dawkin Scripting Help 14 30/07/2018 12:58 PM
Callback unused? TheSy Scripting Help 3 25/04/2014 07:41 PM
Unused Callbacks anito Scripting Help 2 29/07/2013 09:46 AM
Unused cars / rep +1 arcade2705 Scripting Help 4 02/01/2012 02:42 PM
Getting rid of unused vehicles. FbF SAMP Help Archive 4 21/02/2010 01:58 PM


All times are GMT. The time now is 06:48 PM.


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