05.01.2014, 04:17
(
Последний раз редактировалось Joshswag; 05.01.2014 в 04:17.
Причина: Changing the title.
)
Hi all,
I'm trying to create a command which administrative members can execute to broadcast a message to the server, I know this is pretty beginner level although I've never really used strings before and all the tutorials that I've read aren't using the type of string that I'm after. Heres my code so far.
I have got no idea what type of string to put in, so if somebody could give me some advice or point me in the right direction to a tutorial that broadcasts a message to the whole server, I would appreciate it very much.
Thanks in advance,
Josh.
I'm trying to create a command which administrative members can execute to broadcast a message to the server, I know this is pretty beginner level although I've never really used strings before and all the tutorials that I've read aren't using the type of string that I'm after. Heres my code so far.
Код:
if(strcmp(cmd, "/asay", true) == 0) { if (PlayerInfo[playerid][pAdmin] >= 2 || IsPlayerAdmin(playerid)) { if(IsPlayerConnected(playerid)) { if(giveplayerid != INVALID_PLAYER_ID) { } } SendClientMessage(playerid, COLOR_ORANGE, "[ERROR:] Invalid ID."); } else { SendClientMessage(playerid, COLOR_ORANGE, "[ERROR:] Either you're not an administrator, or you don't have the privileges to use this command."); } }
Thanks in advance,
Josh.