Automatically add to server version define?
#8

Quote:
Originally Posted by Glad2BeHere
Посмотреть сообщение
Here is how simple...... Make A Cmd:newversion everytime a admin does the variable goes up ++ and everyone is happy....
He wants it to be automatic.

Create a batch file and run that in notepad++ using a hotkey. (F5?)

Example:

set /p build= <BUILD.bld :: Set variable %build% to the text in BUILD.bld file
set /a build+=1 :: Add 1 to %build%
echo %build% > BUILD.bld :: Write %build% to BUILD.bld file, and overwrite
:: Execute pawncc.exe here...


NOTE: Untested code... no idea if it will work. I know almost nothing about BATCH.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)