AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   about get_pcvar_num (https://forums.alliedmods.net/showthread.php?t=117535)

epic . 02-02-2010 02:59

about get_pcvar_num
 
get_pcvar_num
what is the "p" mean here?

what`s the different from get_cvar_num

:)

Thank you

Sylwester 02-02-2010 03:01

Re: about get_pcvar_num
 
p means pointer.
Check this: http://wiki.amxmodx.org/Optimizing_Plugins_(AMX_Mod_X_Scripting)#Cvar _Pointers

BannedUser! 02-02-2010 03:16

Re: about get_pcvar_num
 
PHP Code:

new cvar_check
cvar_check 
register_cvar("amx_test_cvar""1")

public 
check(id)
{
   
client_print(0print_chat"Cvar in %d"get_pcvar_num(cvar_check))



epic . 02-02-2010 03:22

Re: about get_pcvar_num
 
Really thanks!
You two are nice people
And Sylwester`s Avatar is so nice .


All times are GMT -4. The time now is 07:28.

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