Strcmp
#1

Hello,

I am trying to make something like, when a gang gets created, it searches in one array, and find a gang name that matches with the one you have written as the gangname you want to make, and then send a message, sorry if it's not clear, maybe some code might help

pawn Код:
// Inside my gangcreate command, it prints incorrectly

    for(new i = 1; i < GangInfo[i][gName]; i++)
    {
        printf("Gang Name: %s - Gang Name 2: %s\n", GangName, GangInfo[i][gName]);
        if(strcmp(GangName, GangInfo[i][gName], true))
        {
            SendClientMessage(playerid, Red, "A gang with this name already exists");
            return 1;
        }
    }
Thanks to funky1234 for helping a lot
Reply


Messages In This Thread
Strcmp - by Cowboy - 24.12.2011, 12:02
Re: Strcmp - by Calgon - 24.12.2011, 12:04
Re: Strcmp - by Cowboy - 24.12.2011, 12:10
Re: Strcmp - by Thresholdold - 24.12.2011, 12:13
Re: Strcmp - by Cowboy - 24.12.2011, 12:17
Re: Strcmp - by Ash. - 24.12.2011, 12:20
Re: Strcmp - by Ballu Miaa - 24.12.2011, 12:22
Re: Strcmp - by Cowboy - 24.12.2011, 12:27
Re: Strcmp - by Ash. - 24.12.2011, 12:34
Re: Strcmp - by Cowboy - 24.12.2011, 12:38

Forum Jump:


Users browsing this thread: 3 Guest(s)