SA-MP Forums Archive
Gang Delete - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Gang Delete (/showthread.php?tid=82676)



Gang Delete - Ribber - 19.06.2009

How can i fix this?

pawn Код:
if(strcmp(cmd,"/gangdel",true) == 0)
  {
    if(Gangs[playerGang[playerid]][gOwner] == playername[16])
    {
    new string[256];
  format(string, sizeof(string), "/Gangs/%d.txt", playerGang[playerid]);
    fremove(string);
    strdel(Gangs[playerGang[playerid]][gName], 0, MAX_GANG_NAME);
    strdel(Gangs[playerGang[playerid]][gOwner], 0, MAX_PLAYER_NAME);
    strdel(Gangs[playerGang[playerid]][gActive], 0, MAX_GANG_NAME);
    playerGang[playerid] = 0;
    format(string, sizeof(string), "You deleted your gang. Gang Name: %s, Gang ID: %d", Gangs[playerGang[playerid]][gName],Gangs[playerGang[playerid]][gOwner]);
    SendClientMessage(playerid, COLOR_RED, string);
    }
    else
    {
    SendClientMessage(playerid, COLOR_RED, "You aren't the Gang Leader");
    }
    return 1;
    }

i are the gang Leader, but he says i aren't -.-