Raised This Month: $32 Target: $400
 8% 

set cvar num with value with point


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
faki
Senior Member
Join Date: Jul 2013
Old 08-05-2013 , 12:45   set cvar num with value with point
Reply With Quote #1

set_cvar_num("mycvar", 1.0)

argument type mismatch (argument 2)

Tell me how to fix that?
faki is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-05-2013 , 13:02   Re: set cvar num with value with point
Reply With Quote #2

num is integer
float is float

anyway, use cvar pointers :

set_pcvar_num(pcvar, 1)
set_pcvar_float(pcvar, 1.0)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 08-05-2013 , 14:57   Re: set cvar num with value with point
Reply With Quote #3

new g_iCvar;

g_iCvar = register_cvar("amx_var","1.0");

>>

set_pcvar_num(g_iCvar,1); or set_pcvar_float(g_iCvar,1.0);
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Old 08-06-2013, 04:37
LordOfNothing
This message has been deleted by YamiKaitou. Reason: pointless post, it is the same thing
Reply


Thread Tools
Display Modes

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 15:37.


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