12.11.2013, 21:20
Acho q й erro bobo
Erro:
Linha do Erro :
Todo o comando
Erro:
pawn Код:
\pawno\include\PPC_PlayerCommands.inc(5558) : error 035: argument type mismatch (argument 2)
Linha do Erro :
pawn Код:
SendClientMessageToAll(i, 0xFFFFFFFF, Msg);
Todo o comando
pawn Код:
COMMAND:all(playerid, params[])
{
new Name[24], Msg[128], Message[128];
if (APlayerData[playerid][PlayerLevel] >= 1)
{
GetPlayerName(playerid, Name, sizeof(Name));
if (APlayerData[playerid][LoggedIn] == true)
{
if (sscanf(params, "s[128]", Message)) SendClientMessage(playerid, 0xFF0000AA, "Use: /all [texto]");
else
{
for (new i; i < MAX_PLAYERS; i++)
{
if (APlayerData[i][LoggedIn] == true)
{
if (APlayerData[i][PlayerClass] == APlayerData[playerid][PlayerClass])
{
format(Msg, 128, "{FF00FF}Anuncio Da Administraзгo [ %s ]: {FFFFFF}%s", Name, Message);
SendClientMessageToAll(i, 0xFFFFFFFF, Msg);
}
}
}
}
}
}
else
return 0;
return 1;
}