❗ Name Changer Problems!

Posts 1–7 of 7 · Page 1 of 1
❗ Name Changer Problems!
What is wrong with this code
Code:
ConVar* name = Interfaces::CVar->FindVar("name");
		*(int*)((DWORD)&name->fnChangeCallback + 0xC) = NULL;
		if (name)
		{
			name->SetValue("\n ");			
		}
The thing is that i can change "viewmodel_fov" and other stuff but i can not use "namn"
name->SetValue("\nSetNameHere ");
Quote Originally Posted by ArcusIsNice View Post
name->SetValue("\nSetNameHere ");
wrong, you can set your name to only \n.
Quote Originally Posted by ddddddz View Post
wrong, you can set your name to only \n.
or you can set it to "namehere" without the \n
Code:
static ConVar* name;
name = Interfaces::CVar->FindVar("name");
*(int*)((DWORD)&name->fnChangeCallback + 0xC) = NULL;
							name->SetValue(newName);
you need a static convar

Sorry the char you use had to be static, not the convar its self

--->
Code:
static char newName[64] = "";
Quote Originally Posted by CyanRed3 View Post
Code:
static ConVar* name;
name = Interfaces::CVar->FindVar("name");
*(int*)((DWORD)&name->fnChangeCallback + 0xC) = NULL;
							name->SetValue(newName);
you need a static convar
I don't use a static convar...
Quote Originally Posted by CyanRed3 View Post
Code:
static ConVar* name;
name = Interfaces::CVar->FindVar("name");
*(int*)((DWORD)&name->fnChangeCallback + 0xC) = NULL;
							name->SetValue(newName);
you need a static convar
msdn.microsoft.com/en-us/library/s1sb61xd(v=vs.100).aspx
pretty sure you think static means something else
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us