The order of things - 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: The order of things (
/showthread.php?tid=372731)
The order of things -
GTA Simmer - 27.08.2012
I have been looking thru this section for an answer but have not seen it. I am new to scripting with pawno but am catching on more quickly then I imagined.
My question is....When building the script does it matter in what order the codes are put in??
Example...Say I had the job codes on lines 60-80 but the login codes on line 100-110. Does it matter or is it just to make sure the right codes for what I want are correct?
Re: The order of things -
Akira297 - 27.08.2012
It does matter how you place the codes into the script.
Re: The order of things -
Gh05t_ - 28.08.2012
Quote:
Originally Posted by Akira297
It does matter how you place the codes into the script.
|
mind elaborating?
Re: The order of things -
Akira297 - 28.08.2012
You can't put random stuff or anything onto pieces where they don't belong.
OnPlayerConnect or OnPlayerDisconnect , etc. It does matter on how you place the script together.
Re: The order of things -
Gh05t_ - 28.08.2012
Quote:
Originally Posted by Akira297
You can't put random stuff or anything onto pieces where they don't belong.
OnPlayerConnect or OnPlayerDisconnect , etc. It does matter on how you place the script together.
|
with the example that you provided, it actually DOESN'T matter.
Re: The order of things -
Akira297 - 28.08.2012
Quote:
Originally Posted by Gh05t_
with the example that you provided, it actually DOESN'T matter.
|
I'm not in the best of moods to argue with you.
Re: The order of things -
Gh05t_ - 28.08.2012
Quote:
Originally Posted by Akira297
I'm not in the best of moods to argue with you.
|
why would you though, cause you were wrong? the people here...
Re: The order of things -
GTA Simmer - 28.08.2012
Let me see if I can simple this down a bit. Not sure I explained it correctly anyway so will give it another go
EXAMPLE....
5000 line script....
Does it matter if the log in code(spawn area/skin id/ and all the other stuff that goes with login/regisrtation) are on lines 1500-1550, while all the jobs codes(all aspects for each job) are coded out on lines 300-350?
Hope this will give my question a better understanding. Thanks for these responses btw
Re: The order of things -
SuperViper - 28.08.2012
It doesn't matter.