Raised This Month: $ Target: $400
 0% 

ConVar and tag mismatch (beginner question)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
]FUSION[ Gray Death
Member
Join Date: Mar 2004
Location: Hamburg / Germany
Old 08-31-2007 , 14:08   ConVar and tag mismatch (beginner question)
Reply With Quote #1

Hi there!

I was more than happy, as I saw last month, that Source Mod is now available for public. :-) Thank you very much for the hard work!

Today I started with the coding, trying to convert some of my old plugins from AMXX. So far I have trouble with this one:

CreateConVar("sm_lastsound", "0", "Last soundindex precached");
new sm_lastsound;
sm_lastsound = GetConVarInt(sm_lastsound);

With this, I got a tag mismatch warning vor GetConVarInt. Okay, I try to get a string with an int-Function. But when I change the "0" to a zero without strings in the CreateConVar, I got a full error.

http://wiki.alliedmods.net/ConVars_%...d_Scripting%29

Is there some full scale API, where I can look up each single command?

With kind regards,
Gray Death
]FUSION[ Gray Death 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 05:28.


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