Deathknife / sourcemod-discord

Discord API for Sourcemod
61 stars 36 forks source link

Implementing `const char[]` with set values #10

Closed Scags closed 6 years ago

Scags commented 6 years ago

I did this fairly quickly but I believe all of these should work. This is just for convenience considering most forwards (I.E. SourceBans) and functions use the const char[] type.

kgns commented 6 years ago

container:~/csgo/addons/sourcemod/scripting$ ./spcomp discord_api SourcePawn Compiler 1.9.0.6226 Copyright (c) 1997-2006 ITB CompuPhase Copyright (c) 2004-2017 AlliedModders LLC

/home/container/csgo/addons/sourcemod/scripting/include/discord/bot.inc(171) : error 035: argument type mismatch (argument 3) /home/container/csgo/addons/sourcemod/scripting/include/discord/bot.inc(179) : error 035: argument type mismatch (argument 3) /home/container/csgo/addons/sourcemod/scripting/include/discord/bot.inc(190) : error 035: argument type mismatch (argument 2) /home/container/csgo/addons/sourcemod/scripting/include/discord/bot.inc(193) : error 035: argument type mismatch (argument 2) /home/container/csgo/addons/sourcemod/scripting/include/discord/bot.inc(201) : error 035: argument type mismatch (argument 3)