- 0
Problema IF
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
roscatu
Salut,am o problema,am un cod,dar in care un "if" si anume "if(dialogid == SEX)" nu functioneaza ,adica nu executa ce ii interiorul lui,codul este acesta.
if(dialogid == LOGIN) { // =========== QUERY ==================================================================== new query = mysql_query(username); mysql_store_result(query) mysql_retrieve_row(); mysql_fetch_field_row(tutorial2,"tutorial"); new tutorial = strval(tutorial2); // ======================================================================================= if(tutorial == 0) { return ShowPlayerDialog(playerid,SEX, DIALOG_STYLE_INPUT, "Alege Sexul tau", "1. Masculin\n2. Feminin", "Trimite", ""); } if(dialogid == SEX) { if(!response) { Kick(playerid); } else { new input = strval(inputtext); if(input == 1) { SendClientMessage(playerid,COLOR_WHITE,"Esti barbat!"); ShowPlayerDialog(playerid,AGE, DIALOG_STYLE_INPUT, "Varsta", "\nCati ani ai?\n", "Trimite",""); } else if(input == 2) { SendClientMessage(playerid,COLOR_WHITE,"Esti femeie"); ShowPlayerDialog(playerid,AGE, DIALOG_STYLE_INPUT, "Varsta", "\nCati ani ai?\n", "Trimite",""); } else { ShowPlayerDialog(playerid,SEX, DIALOG_STYLE_INPUT, "Alege Sexul tau", "1. Masculin\n2. Feminin", "Trimite", ""); } } } else { print("IS NOT THE CORECT DIALOG"); } }4 answers to this question
Recommended Posts