Quote:
Originally Posted by Gammix
By default they are empty (string[0] = EOS). Isnull kind of does the same thing to that line of code.
You can use sscanf or strnull.
|
You are correct in case of dialogs. I read about strings not being empty and I went with the assumption that that was always the case. I tested it just now and it appears that it is only the case for params in zcmd -- I only tested it with commands and dialogs.
Test code:
http://pastebin.com/cUqQAvTj
Console prints:
Code:
[01:03:37] cmd_say --> params:
[01:03:43] cmd_say --> params: 2
[01:03:45] cmd_say2 --> params: Empty
[01:03:48] cmd_say2 --> params: e
[01:03:56] DIALOG_TEST --> inputtext: Empty
[01:03:57] DIALOG_TEST --> inputtext: 2
[01:04:04] DIALOG_TEST2 --> inputtext: Empty
[01:04:04] DIALOG_TEST2 --> inputtext: 4
I take back my previous statement since you're using it in dialogs.