SA-MP Forums Archive
Help me fix this error please - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me fix this error please (/showthread.php?tid=572508)



Help me fix this error please - jona_jr - 29.04.2015

Help me fix this error please

pawn Код:
new vzString[1024];
format(vzString, sizeof(vzString), "INSERT INTO `USERS` (`NAME`, `PASSWORD`, `SCORE`, `ADMIN`, `VIP`, `BAN`, `SKIN`, `DINERO`, `MUERTES`, `NIVEL`, `MISICION`, `CARCEL`, `CLANID`, `NCLAN`, `ACLAN`, `CASA`, `DUELOG`, `DUELOP`, `CARMAS`, `W1`, `W2`, `W3`, `W4`, `W5`, `PREGUNTA`, `RESPUESTA`) VALUES ('%s','%s','%d','%d','%d','%d','%d','%d','%d','%d','%d','%d','%d','%s','%d','%d','%d','%d','%d','%d','%d','%d','%d','%d','%s','%s')", DB_Escape(pName(playerid)), (inputtext), Usuario[playerid][pKills], Usuario[playerid][pAdmin], Usuario[playerid][pVip], Usuario[playerid][pBan], Usuario[playerid][pSkin], Usuario[playerid][pCash], Usuario[playerid][pDeaths], Usuario[playerid][pNivel], Usuario[playerid][pMicion], Usuario[playerid][EnCarcel], Usuario[playerid][pClanID], Usuario[playerid][pNClan], Usuario[playerid][pAClan], Usuario[playerid][pCasa], Usuario[playerid][Dwin], Usuario[playerid][Dlose], Usuario[playerid][pCArmas], Usuario[playerid][pArma1], Usuario[playerid][pArma2], Usuario[playerid][pArma3], Usuario[playerid][pArma4], Usuario[playerid][pArma5], Usuario[playerid][pPregunta], Usuario[playerid][pRespuesta]);
Error



Re: Help me fix this error please - Jimmy0wns - 29.04.2015

Split your query into multiple queries, as the error says; the line is too long for the compiler to process.
(he created another topic about it with the error included)


Re: Help me fix this error please - jona_jr - 29.04.2015

Quote:
Originally Posted by Jimmy0wns
Посмотреть сообщение
Split your query into multiple queries, as the error says; the line is too long for the compiler to process.
(he created another topic about it with the error included)
Could you help me with an example to solve


Re: Help me fix this error please - JaydenJason - 29.04.2015

or you can install zeex pawn patches that increases your lines to 4000 or something