Jump to content
  • 0

Line too long


Punct.

Question

Problema intalnita (descriere): Cateva erori, bannuiesc pentru ca am prea multe caractere pe un rand. Pe randul cu update sunt mai multe variabile, dar nu are rost sa le postez pe toate.
Ero(area / rile) / warning-(ul / urile):

 

(17011) : error 075: input line too long (after substitutions)
(17012) : error 017: undefined symbol "UPDATE"
(17012) : error 029: invalid expression, assumed zero
(17012) : error 017: undefined symbol "_players"
(17012) : fatal error 107: too many error messages on one line


Liniile de cod / sursa / script-ul(obligatoriu):

 
mysql_format(mysql, query, sizeof(query), // 17011
"UPDATE `_players` SET `Level`='%d', `Money`='%d', `AdminLevel`='%d' WHERE `ID`='%d'", // 17012
PlayerInfo[i][pLevel], PlayerInfo[i][pCash], PlayerInfo[i][pAdmin], PlayerInfo[i][pID]);
resultq = mysql_query(mysql, query); cache_delete(resultq);
Imagini / Video (optional): - 
Ati incercat sa rezolvati singur?: Sigur. Am incercat sa le pun pe mai multe linii(vezi mai jos), dar fara rezultat.
mysql_format(mysql, query, sizeof(query),
  "UPDATE `_players` SET \
   `Level`='%d', \
   `Money`='%d', \
   `AdminLevel`='%d', \
   WHERE `ID`='%d'",
PlayerInfo[i][pLevel], PlayerInfo[i][pCash], PlayerInfo[i][pAdmin], PlayerInfo[i][pID]);
resultq = mysql_query(mysql, query);
cache_delete(resultq);
Edited by Punct.

Nu mai deschideti in pu*a mea servere de SA:MP !

Jucati-va pe cele care sunt !   Sunt suficiente !

Reguli de bun simt:

1. Nu faceti reclama unde nu trebuie !

2. Nu injurati ca la usa cortului !

3. Daca esti analfabeti, taci din gura !

4. Nu abuza de 'scuze', 'din greseala' !

 

My work ::: http://pastebin.com/VRNRcaAs

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Salut, incearca sa faci asa:

mysql_format(mysql, query, sizeof(query), "UPDATE `_players` SET `Level`='%d', `Money`='%d', `AdminLevel`='%d' WHERE `ID`='%d'",\
PlayerInfo[i][pLevel], PlayerInfo[i][pCash], PlayerInfo[i][pAdmin], PlayerInfo[i][pID]);
mysql_tquery(mysql, query, "", "");

 

"Mulţi programatori buni fac programare nu pentru că se aşteaptă să câştige bani sau să fie lăudaţi de public, ci pentru că e amuzant să programezi." - Linus Torvalds

Link to comment
Share on other sites

  • 0

Salut, incearca sa faci asa:

mysql_format(mysql, query, sizeof(query), "UPDATE `_players` SET `Level`='%d', `Money`='%d', `AdminLevel`='%d' WHERE `ID`='%d'",\
PlayerInfo[i][pLevel], PlayerInfo[i][pCash], PlayerInfo[i][pAdmin], PlayerInfo[i][pID]);
mysql_tquery(mysql, query, "", "");

 

Primesc acele erori pentru ca numarul de caractere dintre " " este prea mare. In fine, am facut cu doua mysql_format'uri si am rezolvat. Un moderator poate da TC.

Nu mai deschideti in pu*a mea servere de SA:MP !

Jucati-va pe cele care sunt !   Sunt suficiente !

Reguli de bun simt:

1. Nu faceti reclama unde nu trebuie !

2. Nu injurati ca la usa cortului !

3. Daca esti analfabeti, taci din gura !

4. Nu abuza de 'scuze', 'din greseala' !

 

My work ::: http://pastebin.com/VRNRcaAs

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.