Hi,
ich aheb irgentein error aber was ...
if(strcmp(cmd, "/einsatz", true) == 0)
{
if(PlayerInfo[playerid][pUndercover] == 0)
{
if PlayerInfo[playerid][pLeader] == 6
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_GRAD2, "Du bist kein Army Leader!");
return 1;
}
SetPlayerSkin(playerid, 285);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeapon(playerid, 30, 999);
GivePlayerWeapon(playerid, 4, 999);
GivePlayerWeapon(playerid, 29, 999);
PlayerInfo[playerid][pUndercover] = 1;
SendClientMessage(playerid, COLOR_GRAD2, "Du bist nun im Einsatz");
return 1;
}
else
{
PlayerInfo[playerid][pUndercover] = 0;
SendClientMessage(playerid, COLOR_GRAD2, "Du bist nun nicht mehr im Einsatz");
SetPlayerSkin(playerid, 288);
return 1;
}
}
return 1;
}
ERRORS:
E:\includes\backup.pwn(11333) : error 029: invalid expression, assumed zero