SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 08/10/2019, 05:00 PM   #11
Sh4rp
Little Clucker
 
Join Date: Sep 2019
Location: Italy
Posts: 27
Reputation: 14
Default Re: Basic Filterscript Tutorial

How to get a variable from the main gamemode?
Ex.: I have a variable defined as "ServerName", I want to format a string with "Welcome on %s!", ServerName. Do I need to define it in every gamemode/filterscript in which is used? There is no other way around it?
__________________
Discord contact: @Sharp#1708
Sh4rp is offline   Reply With Quote
Old 08/10/2019, 05:07 PM   #12
Proxus
Huge Clucker
 
Proxus's Avatar
 
Join Date: May 2018
Location: United Kingdom
Posts: 322
Reputation: 12
Default Re: Basic Filterscript Tutorial

Quote:
Originally Posted by Sh4rp View Post
How to get a variable from the main gamemode?
Ex.: I have a variable defined as "ServerName", I want to format a string with "Welcome on %s!", ServerName. Do I need to define it in every gamemode/filterscript in which is used? There is no other way around it?
No need to bump an extremely old topic, you could've just made a new thread.
Regardless, check this out: https://forum.sa-mp.com/showthread.php?t=151076
__________________
Developer @ Trucknation
Administrator & Developer @ Lost Legacy
"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity"


IMPORTANT LINKS
Proxus 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] Basic MySQL Tutorial Faraday Help Archive 43 03/06/2011 01:55 PM
[Tutorial] Simple basic tutorial with name & vehicleid DarkClone Tutorials 11 20/03/2011 08:25 AM
[FilterScript] Basic Registration Filterscript case 1337: Filterscripts 7 14/01/2011 11:09 AM
[FilterScript] [FS]Basic Fuel Filterscript Pixels^ Filterscripts 21 08/04/2010 11:00 AM


All times are GMT. The time now is 02:34 AM.


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