Hallo Ich habe folgenden TeamChat:
dcmd_teamchat(playerid,params[])
{
new message[128];
new pName[128];
if(ChatClose == 1)
{
SendClientMessage(playerid, 0x828282FF, "* Der Chat ist momentan geschlossen");
return false;
}
if(GetPVarInt(playerid, "muted") == 1)
{
SendErrorMessage(playerid, "* Du bist gemutet und kannst nicht sprechen!");
return 0;
}
if(sscanf(params, "s", message))
{
return SendClientMessage(playerid,0xFF8200FF, " Team-Chat -> Benutze: /teamchat [Nachricht]");
}
else
{
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(gTeam[playerid] == gTeam[i])
{
if(gTeam[playerid] == TEAM_Gangsta)
{
new text[128];
GetPlayerName(playerid, pName, sizeof(pName));
format(text, sizeof(text), "[TEAMCHAT] %s: %s", pName, message);
SendClientMessage(i,0x00D7FFFF, text);
}
else if(gTeam[playerid] == TEAM_Cops)
{
new text[128];
GetPlayerName(playerid, pName, sizeof(pName));
format(text, sizeof(text), "[TEAMCHAT] %s: %s", pName, message);
SendClientMessage(i,0x00D7FFFF, text);
}
else if(gTeam[playerid] == TEAM_Mafia)
{
new text[128];
GetPlayerName(playerid, pName, sizeof(pName));
format(text, sizeof(text), "[TEAMCHAT] %s: %s", pName, message);
SendClientMessage(i,0x00D7FFFF, text);
}
else if(gTeam[playerid] == TEAM_Gangstas)
{
new text[128];
GetPlayerName(playerid, pName, sizeof(pName));
format(text, sizeof(text), "[TEAMCHAT] %s: %s", pName, message);
SendClientMessage(i,0x00D7FFFF, text);
}
}
}
}
}
return 1;
}
Es klappt auch alles nur zeigt er mir in den Logs immer das an:
[21:42:56] [Befehl] von UserName(ID:6): /teamchat blablabl
[21:42:56] sscanf warning: Strings without a length are deprecated, please add a destination size.
Was muss ich ändern ?