The order of things
#1

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?
Reply
#2

It does matter how you place the codes into the script.
Reply
#3

Quote:
Originally Posted by Akira297
Посмотреть сообщение
It does matter how you place the codes into the script.
mind elaborating?
Reply
#4

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.
Reply
#5

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.
Reply
#6

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.
Reply
#7

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...
Reply
#8

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
Reply
#9

It doesn't matter.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)