diff options
author | shennetsind <ind@henn.et> | 2013-06-14 08:50:45 -0300 |
---|---|---|
committer | Euphy <euphy@rathena.org> | 2013-06-15 15:55:54 -0400 |
commit | 242198c67dd1371179f3b1c2c9cdc9e1d5404718 (patch) | |
tree | 065ae2bd5c21f0c56bf85b700301315cdf2bfc20 /src/map/script.c | |
parent | 4958592042af689410c03294b3212e216079ac36 (diff) | |
download | hercules-242198c67dd1371179f3b1c2c9cdc9e1d5404718.tar.gz hercules-242198c67dd1371179f3b1c2c9cdc9e1d5404718.tar.bz2 hercules-242198c67dd1371179f3b1c2c9cdc9e1d5404718.tar.xz hercules-242198c67dd1371179f3b1c2c9cdc9e1d5404718.zip |
Updating .sql item db files
Also Introducing the official DB2SQL plugin to quickly update the .sql db files.
http://hercules.ws/board/topic/1105-hercules-wpe-free-june-14th-patch
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c index c2dfebd01..60f741d6c 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -2045,7 +2045,11 @@ void script_error(const char* src, const char* file, int start_line, const char* StrBuf->Init(&buf); StrBuf->AppendStr(&buf, "\a\n"); - StrBuf->Printf(&buf, "script error on %s line %d\n", file, line); + if( line >= 0 ) + StrBuf->Printf(&buf, "script error on %s line %d\n", file, line); + else + StrBuf->Printf(&buf, "script error on %s item ID %d\n", file, -line); + StrBuf->Printf(&buf, " %s\n", error_msg); for(j = 0; j < 5; j++ ) { script_print_line(&buf, linestart[j], NULL, line + j - 5); |