Raised This Month: $ Target: $400
 0% 

Using sh_vector.h / CVector in a SourceMod extension


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-24-2011 , 16:43   Using sh_vector.h / CVector in a SourceMod extension
Reply With Quote #1

I'm currently working on a SourceMod extension that currently uses Valve's CUtlVector. However, I'm actually copying some code from another extension file that already uses CVector from sh_vector.h, so I was looking to convert over to it.

My project is using the SourceMod sample extension from 1.3.7's source code.

When I try to compile the project in Visual Studio 2008, I have a slight problem.

The problem I'm having is this. On this line:
Code:
CVector<unsigned int> m_Votes;
I'm getting this error:
Quote:
error C2143: syntax error : missing ';' before '<'
Near the top of the file, I have this include:
Code:
#include <sh_vector.h>
I have verified that MMSOURCE18 is properly set, so sh_vector.h should be in the project's include paths (via "$(MMSOURCE18)\core\sourcehook" ). I've also tried using this include instead:
Code:
#include "sh_vector.h"
The file this code appears in is not extension.h/extension.cpp but does include extension.h.

What am I doing wrong here?
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 06-24-2011 at 16:49.
Powerlord is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode