Guten Tag,
ich bekomme derzeit ein paar Warnings, naja.
Hier erstmal der Code:
if(strcmp(cmd,"/mv",true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,15.0, -2314.6999511719, 2381.1000976563, 7.4000000953674))
{
if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
{
if(yak == 0) //Warning 1
{
MoveObject(yaktor, -2314.6999511719, 2381.1000976563, -3.4000000953674,2.5);
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
yak = 1; //Warning 2
}
else
{
MoveObject(yaktor, -2314.6999511719, 2381.1000976563, 7.4000000953674,2.5);
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
yak = 0; //Warning 3
}
}
}
return 1;
}
Liebe Grüße
PS: Die Warnings habe ich mit //markiert
LG