24.12.2011, 12:02
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
Thanks to funky1234 for helping a lot
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;
}
}