23.12.2015, 22:30
Quote:
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { switch(dialogid) { case 0: DIALOG_REGISTER: { if(strlen(inputtext) < 2){ new string[128]; ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,"! REGISTER", string, "Register","Quit"); } else{ new query[1024], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(query, sizeof(query), "INSERT INTO `apocalypse` (username, password) VALUES ('%s', '%s')", name, inputtext); mysql_function_query(mysql, query, false, "",""); } } return 1; } |
fiz assim
PHP код:
if(dialogid == DIALOG_REGISTER)
{
if(response)
{