View Single Post
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 09-05-2021 , 17:56   Re: Need some help with this
Reply With Quote #4

Quote:
Originally Posted by Nubbe View Post
But isnt that old syntax ? because it works with that and when i then compile it, it doesnt give a replytotargeterror in chat ingame

And gives these errors in console

Code:
L 09/05/2021 - 23:51:37: [SM]   [0] ReplyToCommand
L 09/05/2021 - 23:51:37: [SM]   [1] Line 102, C:\Users\xxxxxDesktop\xxxxx\csgo\addons\sourcemod\scripting\include\commandfilters.inc::ReplyToTargetError
L 09/05/2021 - 23:51:37: [SM]   [2] Line 53, test.sp::Command_SetCT
The usage is still the same in both old and new syntax. You're confusing the function prototype with how it's used in actual code.

You need to post the full stack trace for that error if you want help. It's hard to tell what the error is without the "Exception reported" line.
__________________

Last edited by Psyk0tik; 09-05-2021 at 17:58.
Psyk0tik is offline