24.03.2014, 16:15
I have loop problem with SendClientMessage - in the following picture you can see the message "All player accounts updated successfully." and it sends this message according to player numbers - we were 2 players in the server but when we will be 5 it will send 5 times.
btw when i use break; it gives me tag mismatch....
btw when i use break; it gives me tag mismatch....
Код:
CMD:savechars(playerid, params[]) { if (PlayerInfo[playerid][pAdmin] >= 99999) foreach(Player, i) { OnPlayerStatsUpdate(i); SaveEventPoints(); SaveAccountsUpdate(); SaveHouses(); SendClientMessageEx(playerid, COLOR_YELLOW, "All player accounts updated successfully."); } else { SendTDMessage(playerid, COLOR_WHITE, "You are not authorized to use this command."); } return 1; }