01.06.2010, 20:14
I am trying to find the bug, but I can't:
If I go ingame, and I type //test
it says: 'Admin name(id): //test' - instead of 'Admin name(id): test' - what is the problem?
pawn Код:
if(!strcmp(cmdtext, "//", true, 2)) // Admin chat
{
if (UserInfo[playerid][AdminLevel] >= 1 || IsPlayerAdmin(playerid))
{
if(!strlen(cmdtext[2])) return SendClientMessage(playerid, PINK, "USAGE: // <text>");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Admin %s(%d): %s" ,sendername,playerid, cmdtext[2]);
SendClientMessageToAdmins(LIGHTYELLOW, string, 1);
return 1;
}
else return SendClientMessage(playerid, PINK, "You are not an admin!");
}
it says: 'Admin name(id): //test' - instead of 'Admin name(id): test' - what is the problem?