CMD:w(playerid, params[])
{
LoginCheck(playerid);
new string[256],pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
if(sscanf(params,"s[356]",params)) return Usage(playerid,"w <matn> - Baray Chat Dargooshi");
format(string,sizeof(string),""white"[DarGooshi]%s: %s",pname,params);
SendNearMessage( playerid, 0xFFFFFFF, string, 12.1);
format(sb_string, sizeof(sb_string),"{FF9000}[DarGooshi] {FFFFFF}%s", params);
SetPlayerChatBubble(playerid, sb_string, 0xFFFFFFFF, 16.0,4000);
return 1;
}
if (isnull(params)) return Usage(playerid,"w <matn> - Baray Chat Dargooshi");
CMD:w(playerid, params[])
{
if(isnull(params)) return Usage(playerid, "w <matn> - Bago Chat Dargooshi ");
LoginCheck(playerid);
new string[256], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid ,pname, sizeof(pname));
format(string,sizeof(string), ""white"[DarGooshi]%s: %s", pname, params);
SendNearMessage(playerid, 0xFFFFFFF, string, 12.1);
format(sb_string, sizeof(sb_string),"{FF9000}[DarGooshi] {FFFFFF}%s", params);
SetPlayerChatBubble(playerid, sb_string, 0xFFFFFFFF, 16.0,4000);
return 1;
}
if(sscanf(params, "us[356]", pname, string)) return Usage(playerid,"w <matn> - Baray Chat Dargooshi");
Might be something in one of your filterscripts? Maybe? Im super new to scripting but I had a similar issue with my script yesterday. I would type almost any cmd and it would give me an error message from a different filterscript regardless of if the cmd worked or not.
I disabled the filterscript through the server.cfg and I stopped getting that error message. As for why its not showing your usage cmd I have no idea. But try this maybe? PHP Code:
|
CMD:w(playerid, params[])
{
LoginCheck(playerid);
new string[256],pname[MAX_PLAYER_NAME],matn[356];
GetPlayerName(playerid,pname,sizeof(pname));
if(sscanf(params,"s[356]",matn)) return Usage(playerid,"w <matn> - Baray Chat Dargooshi");
format(string,sizeof(string),""white"[DarGooshi]%s: %s",pname,matn);
SendNearMessage( playerid, 0xFFFFFFF, string, 12.1);
format(sb_string, sizeof(sb_string),"{FF9000}[DarGooshi] {FFFFFF}%s", matn);
SetPlayerChatBubble(playerid, sb_string, 0xFFFFFFFF, 16.0,4000);
return 1;
}
if(sscanf(params,"s[356]",matn)) return SendClientMessage(playerid, -1, "w <matn> - Baray Chat Dargooshi");