Unlimited Ammo MEM Function
I know that the value to enable it is 0, but couldn't find the off value. So i listened to what larta said and I tried to make it a variable or whatever, heres my function. Once it's on, i try to turn it off and it just crashes, how do I fix this
?
My Source
?My Source
// Unlimited ammo Mem
// Unlimited ammo / OFF //
{
int ammoOFF = *(int*)(MEM_UNLAMMO);
{
switch(CH_unlammo)
{
case 0:*(int*)(MEM_UNLAMMO) = ammoOFF;break;
case 1:*(int*)(MEM_UNLAMMO) = 0;break;
}
}
}
// Unlimited ammo / OFF //
{
int ammoOFF = *(int*)(MEM_UNLAMMO);
{
switch(CH_unlammo)
{
case 0:*(int*)(MEM_UNLAMMO) = ammoOFF;break;
case 1:*(int*)(MEM_UNLAMMO) = 0;break;
}
}
}

, idk why i keep it there lol. it doesnt effect it but im just too lazy to remove lol. thanks for trying to help but still no 