Jump to content
  • 0

Probleme cu un cod al bazei de date


Yugao

Question

Daca il compilez asa nu merge

[pawn]

public OnGameModeInit()

{

SetGameModeText("HC:RP v0.0.1");

mysql_connect ( "127.0.0.1", "Trinity", "Accounts", "calculatornexus0732030668alex47" );

    new

    string [  756  ]

    ;

    Accounts = db_open ( "Accounts.db" ) ;

    strcat ( string , "CREATE TABLE IF NOT EXISTS `Jucatori`"  ,    756 ) ;

    strcat ( string , "(`ID` INTEGER PRIMARY KEY AUTOINCREMENT            ,\

                        `Nume`                            TEXT            ,\

                        `Sex`                            TEXT            ,\

                        `Parola`                          TEXT            ,\

                        `Varsta`                      NUMERIC            ,\

                        `Spawn`                        NUMERIC            ,\

                        `Interior`                    NUMERIC            ,\

                        `Bani`                        NUMERIC            ,\

                        `Scor`                        NUMERIC , " , 756 ) ;

    strcat ( string ,  "`Ucideri`                      NUMERIC            ,\

                        `Decese`                      NUMERIC ) " , 756 ) ;

    db_free_result ( db_query ( Accounts , string ) ) ;

return ( 1 ) ;

}

[/pawn]

Si imi da urmatoarele erori:

F:\Alex\Servere\Server Samp HC-RP 0.3z\HC-Samp Server\gamemodes\HC-RP.pwn(100) : error 075: input line too long (after substitutions)

F:\Alex\Servere\Server Samp HC-RP 0.3z\HC-Samp Server\gamemodes\HC-RP.pwn(101) : error 037: invalid string (possibly non-terminated string)

F:\Alex\Servere\Server Samp HC-RP 0.3z\HC-Samp Server\gamemodes\HC-RP.pwn(101) : error 029: invalid expression, assumed zero

F:\Alex\Servere\Server Samp HC-RP 0.3z\HC-Samp Server\gamemodes\HC-RP.pwn(101) : error 029: invalid expression, assumed zero

F:\Alex\Servere\Server Samp HC-RP 0.3z\HC-Samp Server\gamemodes\HC-RP.pwn(101) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

5 Errors.

Dar daca scot "Interior" poate fi compilat

[pawn]

public OnGameModeInit()

{

SetGameModeText("HC:RP v0.0.1");

mysql_connect ( "127.0.0.1", "Trinity", "Accounts", "calculatornexus0732030668alex47" );

    new

    string [  756  ]

    ;

    Accounts = db_open ( "Accounts.db" ) ;

    strcat ( string , "CREATE TABLE IF NOT EXISTS `Jucatori`"  ,    756 ) ;

    strcat ( string , "(`ID` INTEGER PRIMARY KEY AUTOINCREMENT            ,\

                        `Nume`                            TEXT            ,\

                        `Sex`                            TEXT            ,\

                        `Parola`                          TEXT            ,\

                        `Varsta`                      NUMERIC            ,\

                        `Spawn`                        NUMERIC            ,\

                        `Bani`                        NUMERIC            ,\

                        `Scor`                        NUMERIC , " , 756 ) ;

    strcat ( string ,  "`Ucideri`                      NUMERIC            ,\

                        `Decese`                      NUMERIC ) " , 756 ) ;

    db_free_result ( db_query ( Accounts , string ) ) ;

return ( 1 ) ;

}

[/pawn]

Cum pot sa rezolv asta?

Xtremeknight-Genesis.png

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Daca pui "Interior" pe linia aia iti da eroare deoarece e prea mare linia asa ca trebuie sa pui "Interior" pe a doua linie unde ai "Ucideri" si "Decese" :

public OnGameModeInit()
{
	SetGameModeText("HC:RP v0.0.1");
	mysql_connect ( "127.0.0.1", "Trinity", "Accounts", "calculatornexus0732030668alex47" );
    new
    string [   756   ]
    ;
    Accounts = db_open ( "Accounts.db" ) ;
    strcat ( string , "CREATE TABLE IF NOT EXISTS `Jucatori`"  ,     756 ) ;
    strcat ( string , "(`ID` INTEGER PRIMARY KEY AUTOINCREMENT             ,\
                        `Nume`                            TEXT             ,\
                        `Sex`                             TEXT             ,\
                        `Parola`                          TEXT             ,\
                        `Varsta`                       NUMERIC             ,\
                        `Spawn`                        NUMERIC             ,\
                        `Bani`                         NUMERIC             ,\
                        `Scor`                         NUMERIC , " , 756 ) ;
    strcat ( string ,  "`Interior`                     NUMERIC             ,\
						`Ucideri`                      NUMERIC             ,\
                        `Decese`                       NUMERIC ) " , 756 ) ;
    db_free_result ( db_query ( Accounts , string ) ) ;
	return ( 1 ) ;
}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

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.