HeyHoo,
Ich habe mir grade ein Megaphone gebastelt.
Nur Leider zeigt er mir dann an "{Polizist :o< Test]"
Woran kann ads Liegen ?
hier der Befehl:
ocmd:m(playerid,params[])
{
new result [128];
if(IsAnCop(playerid))
{
if(sscanf(params,"s",result))return SendClientMessage(playerid,Grau,"Benutze: /m(egaphone) [Text]");
{
new resultstring[256];
new member = GetPVarInt(playerid,"Fraktion");
if(member==1)
{
if(GetPVarInt(playerid,"OnDuty")!=0)return 1;
{
format(resultstring,sizeof(resultstring),"[Polizist %s:o< %s]",sendername,result);
ProxDetector(60.0,playerid,resultstring,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
}
}
else if(member==2)
{
if(GetPVarInt(playerid,"OnDuty")!=0)return 1;
{
format(resultstring,sizeof(resultstring),"[FBI Agent %s:o< %s]",sendername,result);
ProxDetector(60.0,playerid,resultstring,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
}
}
else if(member==3)
{
if(GetPVarInt(playerid,"OnDuty")!=0)return 1;
{
format(resultstring,sizeof(resultstring),"[Soldat %s:o< %s]",sendername,result);
ProxDetector(60.0,playerid,resultstring,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
}
}
}
}
return 1;
}
MfG
Deagle
P,S,; Hier das Array für SENDERNAME: new sendername[MAX_PLAYER_NAME];