SA-MP Forums Archive
Can i add comments to artconfig.txt? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP DL Edition (https://sampforum.blast.hk/forumdisplay.php?fid=92)
+--- Forum: SA-MP 0.3.DL (https://sampforum.blast.hk/forumdisplay.php?fid=90)
+--- Thread: Can i add comments to artconfig.txt? (/showthread.php?tid=650163)



Can i add comments to artconfig.txt? - DavidZvla - 22.02.2018

Thats the question... Can I add comments in my artconfig.txt file like in pawn?

For example:

Код:
AddCharModel(13, 20033, "ped10.dff", "ped10.txd"); // work guys
AddCharModel(15, 20034, "ped11.dff", "ped11.txd"); // Girls
I wanna know cause' it's more easy for me when i'm looking for some object in artconfig.


Re: Can i add comments to artconfig.txt? - NaS - 22.02.2018

Did you even try before posting? It takes less time to find out if the models are added than creating a thread.

Yes, it does work.


Re: Can i add comments to artconfig.txt? - DavidZvla - 22.02.2018

Quote:
Originally Posted by NaS
Посмотреть сообщение
Did you even try before posting? It takes less time to find out if the models are added than creating a thread.

Yes, it does work.
I've working on some things ...
so I've expected someone answer me before restart the server again with everything modified and be able to add the comments in artconfig if is possible.

But anyway.. thank you for your help.


Re: Can i add comments to artconfig.txt? - NaS - 22.02.2018

Quote:
Originally Posted by DavidZvla
Посмотреть сообщение
I've working on some things ...
so I've expected someone answer me before restart the server again with everything modified and be able to add the comments in artconfig if is possible.

But anyway.. thank you for your help.
You could've started a second instance.


Re: Can i add comments to artconfig.txt? - ZaikerH - 22.02.2018

If you can, you should only use this tag.

Код:
#This is an example, here you can write the type of model.
AddCharModel(305, 20000, "example1.dff", "example1.txd");
My code of example.
https://i.imgur.com/e0V7peF.png


Re: Can i add comments to artconfig.txt? - NaS - 22.02.2018

Quote:
Originally Posted by ZaikerH
Посмотреть сообщение
If you can, you should only use this tag.

Код:
#This is an example, here you can write the type of model.
AddCharModel(305, 20000, "example1.dff", "example1.txd");
My code of example.
https://i.imgur.com/e0V7peF.png
Why only hashtag?

You don't need any sign in the beginnning of the line, invalid lines will be ignored. You can use "//" or ";" or "X" or whatever you want to comment out otherwise valid lines, even after a AddCharModel line you can type anything.

Код:
This line is ignored
AddCharModel(305, 20000, "example1.dff", "example1.txd"); this text will not prevent the model from loading
 AddCharModel(305, 20000, "example1.dff", "example1.txd"); this line will not be loaded because of the space at the beginning of it