ocmd:kleidungklauen(playerid,params[])
{
new string[128];
if(!IsPlayerConnected(playerid))return ErrorMsg(playerid,"Nicht eingeloggt");
if(tod[playerid]==1)return ErrorMsg(playerid,"Du bist verwundet");
new pID,tmpskin;
new Float:xx, Float:yy, Float:zz;
if(IsPlayerInFrak(playerid,10)||IsPlayerLeader(playerid,10))
{
if(sscanf(params,"u",pID)) return ErrorMsg(playerid,"INFO: /kleidungklauen [id]");
if(pID == playerid)return ErrorMsg(playerid,"Du kannst dir nicht selbst Kleidung klauen.");
if(GetPVarInt(playerid,"Mörder")>= 1)
{
GetPlayerPos(pID,xx,yy,zz);
if(IsPlayerInRangeOfPoint(playerid,5.0,xx,yy,zz))
{
new killtperson = GetPVarInt(playerid,"Killt");
if(pID==killtperson&&tod[pID]==1)
{
if(IsPlayerInFrak(pID,1)||IsPlayerLeader(pID,1)||IsPlayerInFrak(pID,3)||IsPlayerLeader(pID,3)||IsPlayerInFrak(pID,2)||IsPlayerLeader(pID,2))
{
tmpskin = GetPlayerSkin(pID);
}
else
{
tmpskin = GetPlayerSkin(pID);
}
SetPVarInt(playerid,"Kleidung",tmpskin);
SetPVarInt(playerid,"KDieb",1);
SetPlayerSkin(pID,0);
new tmpname[MAX_PLAYER_NAME];
if(Maske[playerid]==0)
{
tmpname=SpielerName(playerid);
}
else
{
new mname[265];
GetPVarString(playerid, "maskname", mname, MAX_PLAYER_NAME);
format(tmpname,sizeof(tmpname),"*Unbekannter %s",mname);
}
format(string,sizeof(string),"*%s hat %s die Kleidung abgezogen.",tmpname,SpielerName(pID));
SetPVarInt(playerid,"Mörder",0);
ProxDetector(30.0, playerid, string, FARBE_WEISS,FARBE_WEISS,FARBE_WEISS,FARBE_GRAU,FARBE_DUNKELGRAU);
return 1;
}
return ErrorMsg(playerid,"Du hast diese Person nicht getötet.");
}
return ErrorMsg(playerid,"Du musst näher dran sein.");
}
return ErrorMsg(playerid, "Du hast niemanden getötet.");
}
return 1;
}
Das ist der Error
Zeile (1440) : error 047: array sizes do not match, or destination array is too small
Und hier die Zeile.
new tmpname[MAX_PLAYER_NAME];
if(Maske[playerid]==0)
{
tmpname=SpielerName(playerid);
}
Was soll ich tuhn ?