Hallo,
ich hab hier 4 Errors, wobei ich nicht verstehe wieso diese kommen.
Erst den Code, dann die Errors.
if(strcmp("/Schild", cmdtext, true, 10) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
if(OnDuty[playerid] >= 1)
{
PutRiotShieldOnArm(playerid);
SetPlayerArmour(playerid,900);
}
}
}
return 1;
}
if(strcmp("/Schildback", cmdtext, true, 10) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
if(OnDuty[playerid] >= 1)
{
PutRiotShieldOnBack(playerid);
SetPlayerArmour(playerid,900);
}
}
}
return 1;
}
if(strcmp("/licht", cmdtext, true, 10) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
if(OnDuty[playerid] >= 1)
{
GiveFlashLight(playerid);
}
}
}
return 1;
}
if(strcmp("/PTazer", cmdtext, true, 10) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
if(OnDuty[playerid] >= 1)
{
if(TazerRaus[playerid]==0)
{
GiveTazer(playerid);
TazerRaus[playerid]=1;
}
else if(TazerRaus[playerid]==1)
{
TazerRaus[playerid]=0;
}
}
}
}
return 1;
}
if(strcmp("/Wpacken", cmdtext, true, 10) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
if(OnDuty[playerid] >= 1)
{
if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);
}
}
}
return 1;
}
C:\Users\Marcel\Desktop\GTA Your Life 2.2\gamemodes\GameCide2.21.pwn(6472) : warning 217: loose indentation
C:\Users\Marcel\Desktop\GTA Your Life 2.2\gamemodes\GameCide2.21.pwn(23372) : error 017: undefined symbol "PutRiotShieldOnArm"
C:\Users\Marcel\Desktop\GTA Your Life 2.2\gamemodes\GameCide2.21.pwn(23387) : error 017: undefined symbol "PutRiotShieldOnBack"
C:\Users\Marcel\Desktop\GTA Your Life 2.2\gamemodes\GameCide2.21.pwn(23402) : error 017: undefined symbol "GiveFlashLight"
C:\Users\Marcel\Desktop\GTA Your Life 2.2\gamemodes\GameCide2.21.pwn(23418) : error 017: undefined symbol "GiveTazer"
C:\Users\Marcel\Desktop\GTA Your Life 2.2\gamemodes\GameCide2.21.pwn(31489) : warning 213: tag mismatch
C:\Users\Marcel\Desktop\GTA Your Life 2.2\gamemodes\GameCide2.21.pwn(51444) : warning 217: loose indentation
C:\Users\Marcel\Desktop\GTA Your Life 2.2\gamemodes\GameCide2.21.pwn(53718) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.