SA-MP Forums Archive
Problem unknown command@@@ - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem unknown command@@@ (/showthread.php?tid=454284)



Problem unknown command@@@ - Dister_Robi - 28.07.2013

when i use this command, all command unknown
Код:
CMD:savechars(playerid, params[])
{
    if (PlayerInfo[playerid][pAdmin] >= 4) {
        SaveEventPoints();
        SaveHouses();
        SendClientMessageEx(playerid, COLOR_YELLOW, "Tat ca nha da duoc Cap Nhat Thanh Cong.");
        SaveAccountsUpdate();
		//g_mysql_DumpAccounts();
        SendClientMessageEx(playerid, COLOR_YELLOW, "Tat ca Nguoi choi da Cap Nhat Thanh Cong.");
    }
    else {
        SendClientMessageEx(playerid, COLOR_GREY, "Ban khong duoc phep su dung lenh nay.");
    }
    return 1;
}
Код:
task SaveAccountsUpdate[300000]()
{
	foreach(new i: Player) if(gPlayerLogged{i}) {
		SetPVarInt(i, "AccountSaving", 1);
		OnPlayerStatsUpdate(i);
		break; // We only need to save one player at a time.
	}
}