Raised This Month: $ Target: $400
 0% 

[HELP] Invalid Cvar Pointer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-07-2012 , 12:20   Re: [HELP] Invalid Cvar Pointer
Reply With Quote #1

First, you should be using this method to change player's name:
Code:
set_user_info(id, "name", name);

Second, you are using the pointer when formatting instead of the value you get from the pointer.
Code:
new tag[16]; get_pcvar_string(settag, tag, charsmax(tag)); new tagged_name[32]; foramtex(taggedName, charsmax(taggedName), "%s %s", tag, name); set_user_info(id, "name", taggedName);
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
akcaliberg
Senior Member
Join Date: Nov 2011
Location: Istanbul
Old 05-07-2012 , 12:39   Re: [HELP] Invalid Cvar Pointer
Reply With Quote #2

Quote:
Originally Posted by Exolent[jNr] View Post
First, you should be using this method to change player's name:
Code:
set_user_info(id, "name", name);

Second, you are using the pointer when formatting instead of the value you get from the pointer.
Code:
new tag[16]; get_pcvar_string(settag, tag, charsmax(tag)); new tagged_name[32]; foramtex(taggedName, charsmax(taggedName), "%s %s", tag, name); set_user_info(id, "name", taggedName);
So what is the new code ? I can't understand exactly without full code.



Thanks kremesa
akcaliberg 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 00:19.


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