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

PHP код:
D:\UNIPORTANTES\PenDrive\Pen Draivi\SA-MP\Estou Fazendo\gamemodes\gm.pwn(797) : error 002only a single statement (or expressioncan follow each "case" 
linhajs
PHP код:

public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    switch(
dialogid)
    {
        case 
DIALOG_REGISTER:
        {
            if(
strlen(inputtext) < 2){
            new 
string[128];
                 
ShowPlayerDialog(playeridDIALOG_REGISTERDIALOG_STYLE_PASSWORD,"! REGISTER"string"Register","Quit");
        } else{
        new 
query[1024], name[MAX_PLAYER_NAME];
        
GetPlayerName(playeridnameMAX_PLAYER_NAME);
        
format(querysizeof(query), "INSERT INTO `apocalypse` (username, password) VALUES ('%s', '%s')"nameinputtext);
        
mysql_function_query(mysqlqueryfalse"","");
        }
    }
    return 
1;

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)