[Ajuda] error 002: only a single statement (or expression) can follow each "case"
#4

Quote:
Originally Posted by SaDaN
Посмотреть сообщение
Код:
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; 
}
ja resolvi man , seu codigo nгo funcionou mas vlw pela ajuda
fiz assim

PHP код:
    if(dialogid == DIALOG_REGISTER)
    {
        if(
response)
        { 
Reply


Messages In This Thread
error 002: only a single statement (or expression) can follow each "case" - by DKDarkking - 23.12.2015, 19:03
Re: error 002: only a single statement (or expression) can follow each "case" - by SaDaN - 23.12.2015, 19:39
Re: error 002: only a single statement (or expression) can follow each "case" - by EditPawn - 23.12.2015, 22:07
Re: error 002: only a single statement (or expression) can follow each "case" - by DKDarkking - 23.12.2015, 22:30

Forum Jump:


Users browsing this thread: 1 Guest(s)