open.mp forum
[Pawn] [easyMysql] error 001: expected token: "-string end-", but found "-identifier-" - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10)
--- Thread: [Pawn] [easyMysql] error 001: expected token: "-string end-", but found "-identifier-" (/showthread.php?tid=724)



[easyMysql] error 001: expected token: "-string end-", but found "-identifier-" - Aerotactics - 2019-07-17

I don't see what the issue is.



[Image: 68edcdeeb1.png]



EDIT:

Code:
1116: handle = SQL::CreateTable(table, (isnull(column_where)) ? "InnoDB" : column_where, (isnull(column_where2)) ? "latin5" : column_where2, connectionHandle);



1780: format(SQL::upd_form, sizeof(SQL::upd_form), "%s int %s AUTO_INCREMENT,", field_name, (null == false) ? "NOT NULL" : "NULL");



1788: format(SQL::upd_form, sizeof(SQL::upd_form), "%s int %s PRIMARY KEY AUTO_INCREMENT,", field_name, (null == false) ? "NOT NULL" : "NULL");



RE: [easyMysql] error 001: expected token: "-string end-", but found "-identifier-" - SyS - 2019-07-17

You might be using old compiler.Wrap the strings in parentheses. Or just use community compiler.

https://github.com/pawn-lang/compiler


RE: [easyMysql] error 001: expected token: "-string end-", but found "-identifier-" - Aerotactics - 2019-07-17

(2019-07-17, 12:39 PM)SyS Wrote: You might be using old compiler.Wrap the strings in parentheses. Or just use community compiler.

https://github.com/pawn-lang/compiler



This fixed the issue. I thought I had installed Zeex's fixes before. Thanks for letting me know people are actively updating the compiler.