16.03.2010, 15:34
i like to check if the gang already the name, what the player like to create:
if i do this, i dont can create any gang.
But if i define the ID, it work:
pawn Код:
if(strcmp(GangInfo[i][gangNames],tmp,true) == 0)
{
for(new i = 1; i < MAX_GANGS; i++)
{
SendClientMessage(playerid, rot, "This Gang already exists!");
return 1;
}
}
But if i define the ID, it work:
pawn Код:
if(strcmp(GangInfo[0][gangNames],tmp,true) == 0)
{
SendClientMessage(playerid, rot, "This Gang already exists!");
return 1;
}