Here is how to make fog colors in Gellin's base guys! Just wanted to share with you how those other guys did it
Add this code to base.cpp:
Add this to menu.cpp in the second menu's intiation code.Code:char rd[3], gr[3], bl[3]; if(Menu2.mOpt[7].nopt>0){ sprintf(rd, "FogR %d" , Menu2.mOpt[8].nopt); sprintf(gr, "FogG %d" , Menu2.mOpt[9].nopt); sprintf(bl, "FogB %d" , Menu2.mOpt[10].nopt); this->PushToConsole((const char *)rd); this->PushToConsole((const char *)gr); this->PushToConsole((const char *)bl); }else{ this->PushToConsole("FogR 0"); this->PushToConsole("FogG 0"); this->PushToConsole("FogB 0"); }
This works with the edited version of gellins base that I released. If you're smart enough you can find it and implement this code. Heck the hack might already have it.Code:this->AddItemToMenu("Fog Editor" ,1, 0); this->AddItemToMenu("Fog Red Val" ,255, 0); this->AddItemToMenu("Fog Blue Val" ,255, 0); this->AddItemToMenu("Fog Green Val" ,255, 0);
Please don't complain if you don't know what you're doin. Thanks.
Last edited by Crash; 01-19-2010 at 03:32 PM.
nice work seal
Goal List:
Have 50 posts []
Have 75 posts[]
Have 100 posts [ ]
Have 150 posts []
Have 250 posts []
Have 500 posts []
Have 1000 posts[]
Have atleast 2 acc banned[]
Make my own hack []
Finish list start new one[]
Im getting some kind of posts from some people and IDK WHAT to do with em so let me tell now If you send me message about " should be MPGH not MGHP AND LAUGH ABOUT" IT I KNOW THAT IT SHOULD BE like that NOT MGHP BUT MGHP STANDS FOR ME SOMETHING Else
Actually when i got this username it was going to be MultiGearHp then I just want to make it smaller and said MGHP so now if you send me a message remember this!And if any mod can change it To MultiGearHp im glad to that! Thank MGHP (MultiGearHp)!
Status: Bored From Playing Combat Arms
Looks right... I just don't get one thing.
Your strings are only 3 chars longCode:char rd[3], gr[3], bl[3];
And yet your trying to stick a string of 6+ into a buffer of 3. That doesn't make sense to me.Code:sprintf(rd, "FogR %d" , Menu2.mOpt[8].nopt);
I recommend you increase the size of your strings is all. go ahead and make them
It's not like your gonna run out of memory.... =/Code:char rd[30], gr[30], bl[30];
EDIT:
Wait I just looked at the base and somethings not right here. Oh... you just did it wierd. You used the menu option which was supposed to be the default value to set it up.... To be hones I don't get why you didn't just push the string directly... it makes for cleaner code, and you could do without this messiness, but yeh it would work I suppose.
Code:sprintf(rd, "FogR %d" , Menu2.mOpt[8].nopt); sprintf(gr, "FogG %d" , Menu2.mOpt[9].nopt); sprintf(bl, "FogB %d" , Menu2.mOpt[10].nopt);
Last edited by why06; 01-20-2010 at 07:35 AM.
"Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."- Dwight D. Eisenhower
I got that in my hack
Nice work, hope it helps some people :