hlmod / Shop-Core

Documentation
https://hlmod.github.io/Shop-Core/module/create/
GNU General Public License v3.0
28 stars 26 forks source link

ChatGPT module generation support #155

Closed inklesspen1rus closed 1 year ago

inklesspen1rus commented 1 year ago

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);

Additional context изображение

TiBarification commented 1 year ago

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.

MicrosoftTeams-image