SRCMS 2.0A error lines [Help]

08/19/2017 19:51 rhysclark1#1
Hi,

I have setup my silkroad private server website helped by SRCMS 2.0.

I have tested the automatic silk update however i seem to be encountering a problem.

The web purchase is successful and the IPN works correctly however the silk does not get applied to the usernames account.

i check for IPN_Error and got this:

[19-Aug-2017 17:35:41 UTC] PHP Warning: mssql_query() [<a href='function.mssql-query'>function.mssql-query</a>]: message: Incorrect syntax near ','. (severity 15) in C:\Program Files (x86)\Zend\Apache2\htdocs\module\ipn.php on line 119
[19-Aug-2017 17:35:41 UTC] PHP Warning: mssql_query() [<a href='function.mssql-query'>function.mssql-query</a>]: Query failed in C:\Program Files (x86)\Zend\Apache2\htdocs\module\ipn.php on line 119


I checked the config lines and want to ensure these are correct?
118
$silkAmount = $usdToSilks[(int)$mc_gross];
119
mssql_query("exec CGI.CGI_WebPurchaseSilk0,'$username',0,$silkAmount ,0"); // will execute automated in game update of silks.

helped sorting this would be nice, thanks
08/20/2017 00:36 ZαKuRα#2
add zakurapk2 skype
08/20/2017 01:03 B1Q#3
mssql_query("exec CGI.CGI_WebPurchaseSilk0,'$username',0,$silkAmount ,0"); // will execute automated in game update of silks.

you have an extra comma after the procedure name
08/21/2017 17:26 rhysclark1#4
would you happen to know which one? :)
08/22/2017 08:57 B1Q#5
i already told you... it's after the procedure name

exec CGI.CGI_WebPurchaseSilk0, '$username',0,$silkAmount ,0
08/22/2017 09:44 rhysclark1#6
cheers man
08/23/2017 05:13 B1Q#7
cheers