24.12.2018, 13:46
Hi guys,
I when use command that has "u" or "s[126]" not show the how to usage the command
example:
I typed /w not show the Usage(playerid,"w <matn> - Baray Chat Dargooshi");
But send the pm: [DarGooshi]PlayerName: /1
Most of my commands when use send the /1 .
I tested all sscanf versions but not solved.
And I'm likely that there is no problem in my codes but in sscanf bug..
sorry for my bad english..
I when use command that has "u" or "s[126]" not show the how to usage the command
example:
pawn Code:
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;
}
But send the pm: [DarGooshi]PlayerName: /1
Most of my commands when use send the /1 .
I tested all sscanf versions but not solved.
And I'm likely that there is no problem in my codes but in sscanf bug..
sorry for my bad english..