MySQL saving Data
#4

Quote:
Originally Posted by yanir3
View Post
Hey.
Will this work with 'exit' command too?
No, it detects if an admin typed only gmx, use this one to detect both:
pawn Code:
public OnRconCommand(cmd[])
{
    if(!strcmp(cmd,"gmx",true) || !strcmp(cmd,"exit",true))
    {
        mysql_function_query(gHandle, "SELECT * FROM houses", false, "SaveAllHouses", "");
        mysql_function_query(gHandle, "SELECT * FROM businesses", false, "SaveAllBizz", "");
        mysql_function_query(gHandle, "SELECT * FROM factions", false, "SaveAllFactions", "");
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
MySQL saving Data - by yanir3 - 24.06.2013, 18:47
Re: MySQL saving Data - by Onfroi - 24.06.2013, 19:00
Re: MySQL saving Data - by yanir3 - 24.06.2013, 19:01
Re: MySQL saving Data - by Onfroi - 24.06.2013, 19:06
Re: MySQL saving Data - by yanir3 - 24.06.2013, 19:22
Re: MySQL saving Data - by yanir3 - 24.06.2013, 19:27

Forum Jump:


Users browsing this thread: 1 Guest(s)