lundi 7 septembre 2015

Bad letters like " !?="#" and space etc..

So I have this code

Code:

ValidateWord(const string[]) {
    for( ; ; ) {
        switch(string[0]) {
            case 'a'..'z', '0'..'9', 'A'..'Z': {
                #emit load.s.pri string
                #emit add.c 4
                #emit stor.s.pri string
            }
            case EOS: {
                return true;
            }
            default: {
                break;
            }
        }
    }
    return false;
}


DialogResponse..
Code:

else if (ValidateWord(inputtext)) // bad characters
                                {
                                    // Test text here..
                                }


And it's not working.. How come ?
It doesn't send that SendClientMessage with "test" even if I insert any of those letters "#!#%?&$(/& etc


Aucun commentaire:

Enregistrer un commentaire