mysql_query(\"CREATE TABLE IF NOT EXISTS accounts(user VARCHAR(24), password VARCHAR(200), .... IP VARCHAR(16) )\");
... .pwn(1708) : error 075: input line too long (after substitutions)... .pwn(1709) : error 037: invalid string (possibly non-terminated string)... .pwn(1709) : error 017: undefined symbol \"CREATE\"... .pwn(1709) : error 017: undefined symbol \"TABLE\"... .pwn(1709) : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 5 Errors.
new query[650 + 1]; // persze növeld a méretét ha minél több a karakter.strcat(query, \"CREATE TABLE IF NOT EXISTS accounts(user VARCHAR(24),\");strcat(query, \" password VARCHAR(200), .... IP VARCHAR(16) )\");mysql_query(query);
new cquery[650 + 1];mysql_connect(mysql_host, mysql_user, mysql_database, mysql_password); strcat(cquery, \"CREATE TABLE IF NOT EXISTS karakterek(user Tulaj VARCHAR(24), ... Korhazban INT(20),\"); strcat(cquery, \" Alvas INT(20), ... Ehseg INT(20) )\");mysql_query(cquery);...
karakterek(user Tulaj VARCHAR(24),[/quote]Az strcat az biztosan összefûzi a karakterláncokat a cquery változóba.Esetleg írasd ki konzolba print-el a cquery tartalmát mysql_query elõtt: print(cquery);mysql_query(cquery);
print(cquery);mysql_query(cquery);
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'Int INT(20), VirWorld INT(20), Crashelt INT(20), Szarmazas INT(20), Kor INT(20),\' at line 1[/quote] new cquery[650 + 1];mysql_connect(mysql_host, mysql_user, mysql_database, mysql_password); strcat(cquery, \"CREATE TABLE IF NOT EXISTS karakterek(user VARCHAR(24), Tulaj VARCHAR(24), Pos_X FLOAT, pPos_Y FLOAT, Pos_Z FLOAT, Int INT(20), VirWorld INT(20), Crashelt INT(20), Szarmazas INT(20), Kor INT(20), Nem INT(20), Health FLOAT, Korozes INT(20), Bortonben INT(20), Korhazban INT(20),\"); strcat(cquery, \" Alvas INT(20), Piseles INT(20), Ehseg INT(20), Szomj INT(20), Penz_D INT(20), Penz_C INT(20), BankPenz INT(20), Fizetes_D INT(20), Fizetes_C INT(20), Csekk INT(20), Munka INT(20), FFrakL INT(20), FFrakT INT(20), FFrakR INT(20), MFrakL INT(20), MFrakT INT(20), MFrakR INT(20) )\"); print(cquery); Amúgy itt a teljes kód is
new cquery[650 + 1];mysql_connect(mysql_host, mysql_user, mysql_database, mysql_password); strcat(cquery, \"CREATE TABLE IF NOT EXISTS karakterek(user VARCHAR(24), Tulaj VARCHAR(24), Pos_X FLOAT, pPos_Y FLOAT, Pos_Z FLOAT, Int INT(20), VirWorld INT(20), Crashelt INT(20), Szarmazas INT(20), Kor INT(20), Nem INT(20), Health FLOAT, Korozes INT(20), Bortonben INT(20), Korhazban INT(20),\"); strcat(cquery, \" Alvas INT(20), Piseles INT(20), Ehseg INT(20), Szomj INT(20), Penz_D INT(20), Penz_C INT(20), BankPenz INT(20), Fizetes_D INT(20), Fizetes_C INT(20), Csekk INT(20), Munka INT(20), FFrakL INT(20), FFrakT INT(20), FFrakR INT(20), MFrakL INT(20), MFrakT INT(20), MFrakR INT(20) )\"); print(cquery);
strcat(cquery, \"CREATE TABLE IF NOT EXISTS karakterek(user VARCHAR(24), Tulaj VARCHAR(24), Pos_X FLOAT, pPos_Y FLOAT, Pos_Z FLOAT, szam INT(20), VirWorld INT(20), Crashelt INT(20), szarmazas INT(20), Kor INT(20), Nem INT(20), Health FLOAT, Korozes INT(20), Bortonben INT(20), Korhazban INT(20), \");strcat(cquery, \"Alvas INT(20), Piseles INT(20), Ehseg INT(20), Szomj INT(20), Penz_D INT(20), Penz_C INT(20), BankPenz INT(20), Fizetes_D INT(20), Fizetes_C INT(20), Csekk INT(20), Munka INT(20), FFrakL INT(20), FFrakT INT(20), FFrakR INT(20), MFrakL INT(20), MFrakT INT(20), MFrakR INT(20));\");