Updated server and plugins and now cannot compile -
Gongalong - 19.11.2016
Hello,
I could use to help as I am fairly new to scripting. We are working on reviving an old script and I updated the server and the three plugins that it uses and now I am unable to compile.
Right now it is on a public repository on github if you would like to check it out:
https://github.com/mgongguy/SynergyRP
Thank you so much for any help you can provide.
Regards,
Mark
Re: Updated server and plugins and now cannot compile -
Knowinne - 19.11.2016
Try once to remove the .so from server log.
Re: Updated server and plugins and now cannot compile -
Gongalong - 19.11.2016
Thanks so much for your response, but the .so is because I am running on linux not a windows server. I am having trouble compiling the gamemode as a whole in pawno.
Re: Updated server and plugins and now cannot compile -
Knowinne - 19.11.2016
You can't compile? Give me the errors, i'm not good at mysql but i'm sure that i can help.
Re: Updated server and plugins and now cannot compile -
Gongalong - 19.11.2016
I really appreciate your help! You can access the whole server files here:
https://github.com/mgongguy/SynergyRP
Here are the errors:
ServerVars.pwn(670) : error 025: function heading differs from prototype
Functions.pwn(662) : error 035: argument type mismatch (argument 1)
Functions.pwn(986) : error 035: argument type mismatch (argument 1)
Functions.pwn(987) : error 035: argument type mismatch (argument 1)
Functions.pwn(98

: error 035: argument type mismatch (argument 1)
Functions.pwn(989) : error 035: argument type mismatch (argument 1)
Functions.pwn(990) : error 035: argument type mismatch (argument 1)
Functions.pwn(991) : error 035: argument type mismatch (argument 1)
Functions.pwn(992) : error 035: argument type mismatch (argument 1)
Functions.pwn(993) : error 035: argument type mismatch (argument 1)
Functions.pwn(994) : error 035: argument type mismatch (argument 1)
Functions.pwn(995) : error 035: argument type mismatch (argument 1)
Functions.pwn(996) : error 035: argument type mismatch (argument 1)
Functions.pwn(997) : error 035: argument type mismatch (argument 1)
Functions.pwn(99

: error 035: argument type mismatch (argument 1)
Functions.pwn(1014) : error 035: argument type mismatch (argument 1)
Functions.pwn(1015) : error 035: argument type mismatch (argument 1)
Functions.pwn(1016) : error 035: argument type mismatch (argument 1)
Functions.pwn(1017) : error 035: argument type mismatch (argument 1)
Functions.pwn(101

: error 035: argument type mismatch (argument 1)
Functions.pwn(1019) : error 035: argument type mismatch (argument 1)
Functions.pwn(1020) : error 035: argument type mismatch (argument 1)
Functions.pwn(1021) : error 035: argument type mismatch (argument 1)
Functions.pwn(1022) : error 035: argument type mismatch (argument 1)
Functions.pwn(1023) : error 035: argument type mismatch (argument 1)
Functions.pwn(1024) : error 035: argument type mismatch (argument 1)
Re: Updated server and plugins and now cannot compile -
Konstantinos - 19.11.2016
Looking at the script, it uses an old version of the mysql plugin but has uploaded R40+ files for some reason which causes the parameters in
OnQueryError not to match along with the first parameter in
mysql_query (which is the connection handle for newer versions).
Re: Updated server and plugins and now cannot compile -
Gongalong - 19.11.2016
Thank you so much, how would I go about fixing this?
Re: Updated server and plugins and now cannot compile -
Konstantinos - 19.11.2016
You can find the correct version at the bottom of the first post:
https://sampforum.blast.hk/showthread.php?tid=56564
I also noticed that the script uses dini, SQLite and MySQL altogether. It is advised to keep MySQL only and update to R40+ eventually.
Re: Updated server and plugins and now cannot compile -
Gongalong - 19.11.2016
Sorry I'm fairly new to this so sorry, what version do I need? Thanks so much for your help!
Re: Updated server and plugins and now cannot compile -
Konstantinos - 19.11.2016
R6 as
mysql_query was removed in R7 and was replaced by
mysql_function_query.