21.09.2011, 12:12
Hello.
I have two problems.
The first is for dialogue, here InputText.
I do a if (response) { Do This } else { Do That }
The problem is that even if nothing is entered in the input field, response is still to true (since I press the first button).
I then try to test whether InputText was empty, but I can not do these tests without getting an error: /
Second problem with mysql.
I do for example:
All variables are defined and I have no error but nothing is inserted into the DB then you see the validation message to the next line ...
I tried to do a query of SendClientMessage, but nothing appears ... String too long? Yet if I put query [1000], it does not work more: /
Thank you!
I have two problems.
The first is for dialogue, here InputText.
I do a if (response) { Do This } else { Do That }
The problem is that even if nothing is entered in the input field, response is still to true (since I press the first button).
I then try to test whether InputText was empty, but I can not do these tests without getting an error: /
Second problem with mysql.
I do for example:
Код:
format(query, 400, "INSERT INTO `members`(pseudo, password, ip, register_date, last_connection_date, last_connection_ip) VALUES('%s', '%s', '%s', '%s', '%s', '%s')", pPseudo, password, p[playerid][ip], date, date, p[playerid][ip]); mysql_query(query);
I tried to do a query of SendClientMessage, but nothing appears ... String too long? Yet if I put query [1000], it does not work more: /
Thank you!