Posts: 541
Threads: 60
Joined: Jul 2009
Reputation:
0
Yes, I think it is posible.
I see only one way of doing it.
I know how to do it in Dev C++ and I think you can here as well.
You need know how to use file functions as fscanf( I think this exist in pawn aswell)
Open your gamemode, in the same way you are opening your scriptfiles. And chech line by line ( using counter) and once you with strcmp get te exact line you can print it.
If some lines are same, use comments( /* //)
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Sadly, it's not possible. I once searched for it as well. The manual refers to __line as a predefined constant (page 104), but that one doesn't work. Unlike __Pawn (which shows the current Pawn version in BCD) which does work.
Posts: 58
Threads: 0
Joined: Mar 2012
Reputation:
0
It is not possible.
#line directive sets (internally, for compiler uses) line number.
EDIT: You could actually do it because it's saved for debug purposes(debug level should be set accordingly) but there would be a lot of boiler-plate(because you cannot make #emit into macro)