Bekomme Warnings...
C:\Users\Admin\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(17557) : warning 215: expression has no effect
C:\Users\Admin\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(17569) : warning 215: expression has no effect
C:\Users\Admin\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(17581) : warning 215: expression has no effect
C:\Users\Admin\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(48757) : warning 203: symbol is never used: "GiveFlashLight"
C:\Users\Admin\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(48757) : warning 203: symbol is never used: "PutRiotShieldOnArm"
C:\Users\Admin\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(48757) : warning 203: symbol is never used: "RemoveItems"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Warnings.
Zeilen:
////__________________________________________________________
if(strcmp(cmd, "/schild",true) == 0)
{
if(IsACop(playerid))
{
PutRiotShieldOnArm(playerid);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED,"Du bist kein Cop!!");
}
}
if(strcmp(cmd, "/light",true) == 0)
{
if(IsACop(playerid))
{
GiveFlashLight(playerid);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED,"Du bist kein Cop!!");
}
}
if(strcmp(cmd,"/remove",true) == 0)
{
if(IsACop(playerid))
{
RemoveItems(playerid);
SendClientMessage(playerid,COLOR_GREEN, "Du hast deine Ausrüstung eingepackt");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED,"Du bist kein Cop!!");
}
}
Und hier die AttachedObjecte :
RemoveItems(playerid)
{
if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);
}
PutRiotShieldOnArm(playerid)
{
if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
SetPlayerAttachedObject(playerid, 1, 18637, 4, 0.3, 0, 0, 0, 170, 270, 1, 1, 1);
}
GiveFlashLight(playerid)
{
if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);
SetPlayerAttachedObject(playerid, 2,18641, 5, 0.1, 0.02, -0.05, 0, 0, 0, 1, 1, 1);
}