You should learn the basic to programming something and not to hack any game. This is not the goal to learn a programming language and to write a 0815 autoit or other programming language to hack, you need time to learn all what you need for programming. Not more or less.
bool readvalue = false;
void CheckCommand(Command)
{
if ( readvalue == true)
{
//Command contains here the /1 command for example
readvalue = false;
return;
}
if (strstr(Command, "/blabla"))
{
readvalue = true;
//Show "[Request] Select a Value from xx to xx"
}
}
bool readvalue = false;
void CheckCommand(Command)
{
if ( readvalue == true)
{
//Command contains here the /1 command for example
readvalue = false;
return;
}
if (strstr(Command, "/blabla"))
{
readvalue = true;
//Show "[Request] Select a Value from xx to xx"
}
}
Thanks, I'll try it now.
Edit : Mhh, got some errors in my script
Where do I have to put my else if?
You need to put the
if ( readvalue == true)
{
//Command contains here the /1 command for example
readvalue = false;
return;
}
On the top of the CheckCommand function
Other example:
Code:
bool readvalue = false;
void CheckCommand(Command)
{
if ( readvalue == true)
{
//Command contains here the /1 command for example
readvalue = false;
return;
}
if( strstr(Command, "/InfSp")
{
//Inf sp stuff
}
else if (strstr(Command, "/InfHp")
{
//Inf Hp stuff
}
else if (strstr(Command, "/blabla"))
{
readvalue = true;
//Show "[Request] Select a Value from xx to xx"
}
}
You need to put the
if ( readvalue == true)
{
//Command contains here the /1 command for example
readvalue = false;
return;
}
On the top of the CheckCommand function
Other example:
Code:
bool readvalue = false;
void CheckCommand(Command)
{
if ( readvalue == true)
{
//Command contains here the /1 command for example
readvalue = false;
return;
}
if( strstr(Command, "/InfSp")
{
//Inf sp stuff
}
else if (strstr(Command, "/InfHp")
{
//Inf Hp stuff
}
else if (strstr(Command, "/blabla"))
{
readvalue = true;
//Show "[Request] Select a Value from xx to xx"
}
}
Thanks that you are helping me so much with this!!
Ok ok, it works, but another problem. I can't do it with more numbers..
I tryed 2 ways