Raised This Month: $ Target: $400
 0% 

Hostname


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-11-2011 , 05:54   Re: Hostname
Reply With Quote #1

Quote:
Originally Posted by BodyBuilder View Post
PHP Code:
new hostname[64]
get_cvar_string("hostname",hostname,63)
client_print(idprint_chat"Welcome to %s",hostname
Pcvars are much faster and should be used if the cvar is to be used more than once for the map.

Quote:
Originally Posted by jimaway View Post
no it shouldnt, get_cvar_pointer doesent exist, since get_cvar_* and set_cvar_* dont use pointers
Actually, it does exist.
It is used to get an existing cvar's pointer.
You can also get a cvar's pointer by registering it.
Cvar pointers (Pcvars) are much faster than normal cvars because it removes the cvar pointer lookup when using the functions.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply



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 23:29.


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