Quote:
Originally Posted by Onfroi
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; }
|
Yeah that's why I did. It doesn't work..