SA-MP Forums Archive
disable few 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: disable few scripts (/showthread.php?tid=566118)



disable few scripts - Golf - 03.03.2015

hello i have a lot of printf i would know if i can disable theme

PHP код:
print(" disable this "); 
MySQLCheckConnection();
mysql_query(sql);
mysql_store_result();
mysql_fetch_row(row);
nbreentree strval(row);
mysql_free_result();
print(
" disable this ");  // and this 
..........
... 
...
...
..
print(
" disable this ");  // and this 
... 
...
...
.. 
... 
...
...
..
print(
" disable this ");// and this 
thanks a lot, Regards,Golf


Re: disable few scripts - ATGOggy - 03.03.2015

Just remove those lines.


Re: disable few scripts - Golf - 03.03.2015

a lots = 10000 printf lines ^^*
edit :
it's possible like ?

PHP код:
#define printf(""); (0) 



Re: disable few scripts - ATGOggy - 03.03.2015

If you want no printf, you'll have to remove them all manually.


Re: disable few scripts - Evocator - 03.03.2015

1) CTRL + F
2) Type print(
3) Press enter
4) Delete everyline you get.
5) Press F3
6) Start from #4


Re: disable few scripts - ATGOggy - 03.03.2015

Quote:
Originally Posted by Ralfie
Посмотреть сообщение
1) CTRL + F
2) Type print(
3) Press enter
4) Delete everyline you get.
5) Press F3
6) Start from #4
Haha, yeah :P


Re: disable few scripts - Golf - 03.03.2015

i know all those methods thanks but if it exist another method ^^ to disable theme directly


Re : disable few scripts - Golimad - 03.03.2015

Open notepad++;
Copy all your code and paste it in new file;
Ctrl+F
Replace tab
Use : replace all : print( to //print(
if you want them back later , same thing , replace //print( to print(
repaste your code in pawn and compile => Done in less than a millisecond


Re: disable few scripts - Golf - 03.03.2015

thank you i'll try


Re: Re : disable few scripts - CalvinC - 03.03.2015

Quote:
Originally Posted by Golimad
Посмотреть сообщение
Open notepad++;
Copy all your code and paste it in new file;
Ctrl+F
Replace tab
Use : replace all : print( to //print(
if you want them back later , same thing , replace //print( to print(
repaste your code in pawn and compile => Done in less than a millisecond
Why use notepad++? Use CTRL+H to replace code in pawno.