09.08.2016, 15:56
So I wanted to make a disable clan chat command on a RPG server, and I have some errors
That's the code
And there are the errors: http://imgur.com/a/3S6AG
Can you fix it pls?
That's the code
Код:
CMD:togc(playerid,params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(IsPlayerConnected(playerid)) { if (pClan[playerid]) { pClan[playerid] = 1; SendClientMessage(playerid, COLOR_GRAD1, "Clan chat channel Disabled."); } else if (pClan[playerid]) { pClan[playerid] = 0; SendClientMessage(playerid, COLOR_GRAD1, "Clan chat channel Enabled."); } } return 1; }
Can you fix it pls?