SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 24/08/2011, 10:19 AM   #1
Huge Clucker
Jafet_Macario's Avatar
Join Date: Jul 2011
Posts: 439
Reputation: 67
Default Help me, please /a chat

So, I'm trying to make an admin chat, basically admins can speak with eachother using the command /a [text]
But, I got this command:
pawn Code:
CMD:a(playerid, params[])
    new sendername[MAX_PLAYER_NAME], result[128], string[128];
    if(!(PlayerInfo[playerid][pAdmin] >= 1)) return SCM(playerid, COLOR_GREY,"You are not authorized to use this command");
    if(sscanf(params,"s[128]", result)) return SCM(playerid, COLOR_GOLD,"USAGE: /a [chat]");
        format(string, sizeof(string),"*%d Admin %s: %s", PlayerInfo[playerid][pAdmin], sendername, result);
        SendAdminMessage(COLOR_GOLD, string);
    return 1;
Every time I type for example: /a hello, or anything, I'm getting always this message: "USAGE: /a [chat]", any help, please?
Jafet_Macario is offline  

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] Shrewd Chat System V2 (With Smart Chat V3) [Good for Roleplay] =WoR=Varth Filterscripts 24 13/03/2017 12:24 PM
How to make chat and disable the Starting global chat slymatt Help Archive 1 20/07/2011 02:10 AM
Admin Chat < Admins can't see chat or my text, but I can see their chat Andy_McKinley Help Archive 37 17/05/2011 08:26 PM

All times are GMT. The time now is 10:22 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.