Announce Command bugged
#1

Quote:

COMMAND:announce(playerid, params[])
{

// Send the command to all admins so they can see it
SendAdminText(playerid, "/announce", params);

// Check if the player has logged in
if (APlayerData[playerid][LoggedIn] == true)
{
// Check if the player's admin-level is at least 1
if (APlayerData[playerid][PlayerLevel] >= 1)
{
if(sscanf(params)) return SendClientMessage(playerid,0x0000BBAA, "USAGE: /an(nounce) [message]");
else
{
GameTextForAll(params, 3800, 6);
return 1;
}
}
else
return 0;
}
else
return 0;

// Let the server know that this was a valid command
return 1;
}

This command works but in the chat says unknown command after execution. Please help me. What's wrong with it?
Forgot to say: I tried some things so it may be not working in this state. Please help me fix it.
Ty in advance, Radi
Reply


Messages In This Thread
Announce Command bugged - by tpolis - 04.11.2012, 14:22
Re: Announce Command bugged - by tyler12 - 04.11.2012, 14:28
Re: Announce Command bugged - by verlaj - 04.11.2012, 15:03

Forum Jump:


Users browsing this thread: 1 Guest(s)