Jump to content
×
×
  • Create New...
  • 0

[Vanilla-Core] Problem modify the source and recompile


Nelsonix

Question

Good Morning community, I would have a problem changing the core source of the famous vanilla: Let me give an example:
 
 
TOKEN ("emotion_without_mask")
{
flags int = 0;
 
str_to_number (STEAG, value_string);
 
If ( == 1)
{
emotion_without_mask = true;
fprintf (stderr, "EMOTION_WITHOUT_MASK: 1 0" Padiglione);
}
}
 
% D n ---> instead of these letters I write or or 0 1?
   % I n ---> instead of these letters we write or or 0 1?
 
If you should do so for all the options you want to change config.cpp cure?
 
Or if I change config.cpp later we have to change other files to one strength ??
 
_____________ -------- _________________ ------------ _____________--------------
I also have another problem <. <
 
After making the changes as I recompile it in a single file
 
how do I even for mysql ??
 
 
Please help me
 
I made the topic in Romanian because I thought the forum was Romanian
I apologize for any typos
Link to comment
Share on other sites

  • Answers 5
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

5 answers to this question

Recommended Posts

  • 0
Try this:
 
TOKEN ("emotion_without_mask")
{
int flags = 0;


str_to_number (flags, value_string);


if (flags == 1)
{
        emotion_without_mask = true;
        fprintf (stderr, "EMOTION_WITHOUT_MASK: 1");
}
else if (!flags)
{
        fprintf (stderr, "EMOTION_WITHOUT_MASK: 0");
}}
Edited by Grudge
Link to comment
Share on other sites

  • 0

it seems like STEAG is your variable storing the flag. Therefore the solution is simple :)

fprintf(stderr, "EMOTION_WITHOUT_MASK: %d", STEAG);

 

Also you can do:

fprintf(stderr, "EMOTION_WITHOUT_MASK: %d", (true == emotion_without_mask) ? 1 : 0);

 

Both should work :D

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.