Need some help
#1

Hello,

I am trying to make when a player creates a gang, and the player's gangname is already choosen by someone else, it should send a message, but it ain't working.
Here's the code

pawn Код:
for(new i; i < TotalGangs; i++)
    {
        format(CheckName, sizeof(CheckName), Gang_File, i);
        if(DOF_FileExists(CheckName))
        {
            new gname[128];
            strcat(gname, DOF_GetString(CheckName, "Name"), 128);
            if(strcmp(GangName, gname, true) == 0)
            {
                SendClientMessage(playerid, Red, "A gang with this name already exists");
                return 1;
            }
        }
    }
It just keeps on making the gang, please help, thanks.
Rep will be given.
Reply


Messages In This Thread
Need some help - by Cowboy - 20.12.2011, 16:40
Re: Need some help - by Cowboy - 21.12.2011, 11:10
Re: Need some help - by Ash. - 21.12.2011, 11:35
Re: Need some help - by Cowboy - 21.12.2011, 18:46
Re: Need some help - by Ash. - 21.12.2011, 20:09
Re: Need some help - by Cowboy - 22.12.2011, 13:43
Re: Need some help - by Cowboy - 22.12.2011, 20:30
Re: Need some help - by skaTim - 22.12.2011, 21:00
Re: Need some help - by Cowboy - 22.12.2011, 21:02
Re: Need some help - by Ash. - 22.12.2011, 21:09

Forum Jump:


Users browsing this thread: 1 Guest(s)