So I'm tryna get my nickname , split it in characters , then convert each character to int and make their math average.
I tried something but i'm not sure it works lul
Also , I'm not sure if the addresses are good , i found them on the forums
Any suggestions?
I tried something but i'm not sure it works lul
Also , I'm not sure if the addresses are good , i found them on the forums
Any suggestions?
Code:
void test()
{
int i=0,s=0,c=0,m=0;
char* nick;
DWORD* SAMP_INFO = 0;
DWORD* pSAMP1 = 0;
DWORD* pSAMP2 = 0;
Sleep(2000);
DWORD SAMPDLLBASE = (DWORD)GetModuleHandleA("samp.dll");
if(SAMPDLLBASE)
{
SAMP_INFO = (DWORD*)(SAMPDLLBASE + 0x21A0F8);
pSAMP1 = (DWORD*)(SAMP_INFO+0x3CD);
pSAMP2 = (DWORD*)(pSAMP1+0x18);
nick = (char*)(pSAMP2 + 0xA);
}
for(i=0;i<=(int)strlen(nick);i++,c++)
{
s+=(int)nick[i];
}
m=s/c;
}