Hey.
Ich habe hier einen klammerfehler drinnen nur weiß nicht welchen wenn jemand helfn kann danke im
if(strcmp(cmd, "/gangwaffen", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInRangeOfPoint(playerid,6.0,2817.5237,-1172.2072,1025.5703))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "Hilfe : /gangwaffen [Nummer 1-2]");
SendClientMessage(playerid, COLOR_GREEN, "|_______ Ausrüstung _______|");
SendClientMessage(playerid, COLOR_LIGHTGREEN, "| 1: Alle Waffen weglegen 2: Gangausrüstung");
return 1;
}
new item = strval(tmp);
if (item == 1)
{
if(PlayerInfo[playerid][pMember] == 17||PlayerInfo[playerid][pLeader] == 17 PlayerInfo[playerid][pLeader] == 17)
{
ResetPlayerWeapons(playerid);
GetPlayerName(playerid, sendername, sizeof(sendername));
}
}
else if (item == 2)
{
if(PlayerInfo[playerid][pMember] == 17||PlayerInfo[playerid][pLeader] == 17 PlayerInfo[playerid][pLeader] == 17)
{
GivePlayerSaveWeapon(playerid, 5, 1);
GivePlayerSaveWeapon(playerid, 24,150);
GivePlayerSaveWeapon(playerid, 29,200);
GivePlayerSaveWeapon(playerid, 30,200);
GetPlayerName(playerid, sendername, sizeof(sendername));
}
}
return 1;
}
}