SA-MP Forums Archive
[Question] Threaded scripts? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Question] Threaded scripts? (/showthread.php?tid=325717)



[Question] Threaded scripts? - tony_fitto - 14.03.2012

Hey SAMP.

I just have on question, What da h*** is threaded scripts?
I've never heard about it before ...


Re: [Question] Threaded scripts? - Calgon - 14.03.2012

Threading is a common technique used in the MySQL plugin(s). Basically, you have a query and as soon as your query is executed, the plugin calls back to the script and you can put your code in threads, so the code is only executed in the thread, when the query executes properly.

It's an ambiguous term though, it can mean multiple things, but I'm presuming you're talking about the MySQL definition/usage.


Re: [Question] Threaded scripts? - TTJJ - 14.03.2012

Hi Tony,

Threading is a form of multi-tasking. By threading activities you allow multiple processes to run simultaneously without hanging or interfering with one another. I personally have never threaded a script, however I have looked into it. If you want more info on threading, take a look here: http://en.wikipedia.org/wiki/Multith...rchitecture%29

If you want to give it a try, take a look here: https://sampforum.blast.hk/showthread.php?tid=264178

Cheers,

TJ


Re: [Question] Threaded scripts? - TRIPLE-xXx-GAMEING - 14.03.2012

tony whatever which car mod you use(the one in your signature) can you give me the link plz


Re: [Question] Threaded scripts? - tony_fitto - 14.03.2012

Quote:
Originally Posted by Calgon
Посмотреть сообщение
Threading is a common technique used in the MySQL plugin(s). Basically, you have a query and as soon as your query is executed, the plugin calls back to the script and you can put your code in threads, so the code is only executed in the thread, when the query executes properly.
Alright, I have no idea how to fix it, cuase my Game mode is in MySQL which I just transfared to my PC from my Host.
And some how the server wont start saying that File or Function is not found, which it should work cause it's just transfared from my Host where it works fine, I've also checked so the plugins and such are loaded and everything is loaded perfect besides the Game mode...

Any Idea mate?


Re: [Question] Threaded scripts? - NoorMustafa123 - 27.07.2018

same here.

@Anyone.