SetVariantString deprecated?
Hi,
I haven't been developing in SM for almost a year now and wanted to update a plugin of mine with a little safety fix. When compiling before any edits to make sure the code still works, I get a error of "Undefined symbol: SetVariantString". I'm using the latest SM now. I cannot find any info on why this shouldn't work no more. Has SetVariantString been deprecated or something? I've tried finding any info on this in the recent updates but couldn't find any. Compilation works fine on 1.8, but it throws the error on 1.9 |
Re: SetVariantString deprecated?
try #include <sdktools_variant_t>
Edit: Are you including sdktools itself? It looks like that should be included when you include sdktools. |
Re: SetVariantString deprecated?
Quote:
|
Re: SetVariantString deprecated?
Quote:
|
Re: SetVariantString deprecated?
Quote:
PHP Code:
|
Re: SetVariantString deprecated?
Make sure sdktools.inc is up to date; there should be an include directive pointing to sdktools_variant_t there.
I suspect that you didn't overwrite your copy of the include with the new version. sdktools_variant_t.inc is new to 1.9. |
Re: SetVariantString deprecated?
Quote:
|
Re: SetVariantString deprecated?
I only included sdktools and it compiled fine for me... not sure why you’d have issues.
|
Re: SetVariantString deprecated?
Tried it out aswell, didn't have to include sdktools_variant_t, it works gucci.
|
Re: SetVariantString deprecated?
I did another fresh install of SM and now it works, unsure why this happened!
My guess would be that I accidentally replaced sdkhooks with an previous version somehow, that'd be the only explanation... Thanks for the help anyway! |
All times are GMT -4. The time now is 11:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.