Hey !
Hab ein Problem :\
ocmd:f(playerid,params[])
{
for(new i=0;i < MAX_PLAYERS;i++)
{
new nachricht[128];
if(sscanf(params,"s",nachricht))return SendClientMessage(playerid,Rot,"Fehler: /f [Nachricht]");
{
new Spieler[64];
new Spieler2[64];
format(Spieler,sizeof(Spieler),"Spieler/%s.txt",PlayerName(playerid));
format(Spieler2,sizeof(Spieler2),"Spieler/%s.txt",PlayerName(i));
new string[256];
if(IsPlayerInFraktion(playerid,1))
{
if(dini_Int(Spieler,"Fraktionsrang")==1)
{
//frakstring="Lausbub";
format(string,sizeof(string),"Neuling %s: %s.",PlayerName(playerid),nachricht);
if(dini_Int(Spieler2,"Fraktion")==dini_Int(Spieler,"Fraktion"))
{
SendClientMessage(i,Hellblau,string);
}
}
if(dini_Int(Spieler,"Fraktionsrang")==2)
{
//frakstring="Terrorzwerg";
format(string,sizeof(string),"Terrorzwerg %s: %s.",PlayerName(playerid),nachricht);
if(dini_Int(Spieler2,"Fraktion")==dini_Int(Spieler,"Fraktion"))
{
SendClientMessage(i,Hellblau,string);
}
}
if(dini_Int(Spieler,"Fraktionsrang")==3)
{
//frakstring="Terrorist";
format(string,sizeof(string),"Terrorist %s: %s.",PlayerName(playerid),nachricht);
if(dini_Int(Spieler2,"Fraktion")==dini_Int(Spieler,"Fraktion"))
{
SendClientMessage(i,Hellblau,string);
}
}
if(dini_Int(Spieler,"Fraktionsrang")==4)
{
//frakstring="Co-Leader";
format(string,sizeof(string),"Co-Leader %s: %s.",PlayerName(playerid),nachricht);
if(dini_Int(Spieler2,"Fraktion")==dini_Int(Spieler,"Fraktion"))
{
SendClientMessage(i,Hellblau,string);
}
}
if(dini_Int(Spieler,"Fraktionsrang")==5)
{
//frakstring="Leader";
format(string,sizeof(string),"Leader %s: %s.",PlayerName(playerid),nachricht);
if(dini_Int(Spieler2,"Fraktion")==dini_Int(Spieler,"Fraktion"))
{
SendClientMessage(i,Hellblau,string);
}
}
}
}
}
return 1;
}
Die Nachricht wird nicht gesendet !
Edit:
In den Serverlogs:
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
[15:48:26] sscanf warning: Strings without a length are deprecated, please add a destination size.
Alles anzeigen
Das geht noch viel länger , wenn man /f macht fängt es an , und hört erst auf , wenn man den server neustartet !