SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Discussion

Reply
 
Thread Tools Display Modes
Old 18/02/2018, 10:41 PM   #751
rfr
Huge Clucker
 
rfr's Avatar
 
Join Date: Nov 2017
Location: 55.3781N 3.4360W
Posts: 262
Reputation: 40
Default Re: Today I learned - Share your newly found knowledge!

Quote:
Originally Posted by Eoussama View Post
Today I learned about a simple BATCH instruction that serves as a cool hack when testing/debugging.

1- First, open any text editor, and paste the following instructions
PHP Code:
@echo off

:s
samp
-server.exe
goto 
2- Save the file as something.bat
3- Run the .bat file

Now, whenever you change your code source and compile, no need to exit and re-execute your samp-server.exe, just type the exit command in the console, and it will automatically close and re-open it for you.
can't you write gmx on the console?
rfr is online now   Reply With Quote
Old 19/02/2018, 03:00 PM   #752
Gforcez1337
High-roller
 
Gforcez1337's Avatar
 
Join Date: Jul 2010
Location: The Netherlands.
Posts: 1,014
Reputation: 315
Default Re: Today I learned - Share your newly found knowledge!

Quote:
Originally Posted by rfr View Post
can't you write gmx on the console?
That restarts the gamemode, not the entire server.
__________________

Gforcez1337 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Things you learned from GTA SA Toni Everything and Nothing 212 20/08/2011 08:07 AM
How you learned to script Bam23 Help Archive 9 11/04/2011 11:21 AM
What did u learned today ? rafay Everything and Nothing 170 30/03/2010 05:06 PM


All times are GMT. The time now is 02:56 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.