/a admin chat help [+rep]
#1

So I tried to script this
CMD:a(playerid,params[])
{
new text[256], astring[128];
GetPlayerName(playerid,astring,sizeof(astring));
format(astring,sizeof(astring),"Admin Chat: %s says: %s",pName(pid),text);
MessageToAdmins(COLOR_GREEN,astring);

return 1;
}
it's admin chat.
How it should be working
/a (text) and sends message to all admins online
For example if I use /a test it should send message to admin: Admin Chat: (name) says: a

How it works
It actually sends the message to admins but its blank. the message is not sent,just the Admin Chat: (name) says: <ITS BLANK HERE> and I don't know why.
Reply


Messages In This Thread
/a admin chat help [+rep] - by [SU]Spartan - 25.04.2016, 07:56
Re: /a admin chat help [+rep] - by introzen - 25.04.2016, 08:02
Re: /a admin chat help [+rep] - by [SU]Spartan - 25.04.2016, 08:07
Re: /a admin chat help [+rep] - by -CaRRoT - 25.04.2016, 08:17

Forum Jump:


Users browsing this thread: 1 Guest(s)