Is your feature request related to a problem? Please describe.
ChatGPT can generate source code using almost any language. It can generate sourcepawn plugins also. But when it generates plugin using Shop Core, It uses non-exists native Shop_AddPlayerCredits so plugin does not compile.
Describe the solution you'd like
Let ChatGPT generate valid source code by adding non-exists function.
Add stock-function to call Shop_GiveClientCredits under the hood:
stock int Shop_AddPlayerCredits(int client, int amount, int by_who = CREDITS_BY_NATIVE) {
return Shop_GiveClientCredits(client, amount, by_who);
}
Describe alternatives you've considered
Add new Shop_AddPlayerCredits native, similar to Shop_GiveClientCredits:
native int Shop_AddPlayerCredits(int client, int amount, int by_who = CREDITS_BY_NATIVE);
ChatGPT have a lot of issues and false-positives. The code its generate is unapplicable for game servers in most cases. We are not ready to use neural network for such kind of things.
Is your feature request related to a problem? Please describe. ChatGPT can generate source code using almost any language. It can generate sourcepawn plugins also. But when it generates plugin using Shop Core, It uses non-exists native Shop_AddPlayerCredits so plugin does not compile.
Describe the solution you'd like Let ChatGPT generate valid source code by adding non-exists function. Add stock-function to call
Shop_GiveClientCredits
under the hood:Describe alternatives you've considered Add new
Shop_AddPlayerCredits
native, similar toShop_GiveClientCredits
:Additional context