Index: src/mangosd/CliRunnable.cpp =================================================================== --- src/mangosd/CliRunnable.cpp (revision 3865) +++ src/mangosd/CliRunnable.cpp (working copy) @@ -104,22 +104,41 @@ // Create a character dump file void CliWritePlayerDump(char*command,pPrintf zprintf) { - if(!command || !*command) return; + if(!command || !*command) + { + zprintf("Syntax is: writepdump \r\n"); + return; + } char * file = strtok(command, " "); char * p2 = strtok(NULL, " "); - if(!file || !p2) return; + if(!file || !p2) + { + zprintf("Syntax is: writepdump \r\n"); + return; + } objmgr.WritePlayerDump(file, atoi(p2)); + zprintf("Done\r\n"); } // Load a character from a dump file void CliLoadPlayerDump(char*command,pPrintf zprintf) { - if(!command || !*command) return; - char * file = strtok(command, " "); if(!file) return; - char * acc = strtok(NULL, " "); if(!acc) return; + if(!command || !*command) + { + zprintf("Syntax is: loadpdump \r\n"); + return; + } + char * file = strtok(command, " "); + char * acc = strtok(NULL, " "); + if(!file || !acc) + { + zprintf("Syntax is: loadpdump \r\n"); + return; + } char * name = strtok(NULL, " "); char * guid = name ? strtok(NULL, " ") : NULL; objmgr.LoadPlayerDump(file, atoi(acc), name ? name : "", guid ? atoi(guid) : 0); + zprintf("Done\r\n"); } /// Reload the scripts and notify the players