23.03.2016, 00:25
Hi! I recently added Age in my server but somehow i can't make it work. (not update in my sql) Here's my script. Thanks for your help!
Quote:
if (dialogid == DIALOG_AGE) { if (!response) return Kick(playerid); if (strval(inputtext) < 7) { ShowPlayerDialog(playerid, DIALOG_AGE, DIALOG_STYLE_INPUT, "Age", "{FF0000}Invalid Age. Your age must be 7 and up\n{FFFFFF}Please enter your age.", "Submit", "Quit"); return 0; } Player[playerid][Age] = strval(inputtext); } |