16.03.2010, 16:09
Quote:
Originally Posted by //exora
No, you have to do the loop before checking the gangname, it shouldn't even compile the way you did.
|
// Edit: ok, my bad, i've scriptet in this forum, i was to lazy to copy my snippet
my code in my script:
pawn Код:
for(new i = 1; i < MAX_GANGS; i++)
{
if(strcmp(GangInfo[i][gangNames],tmp,true)==0)
{
SendClientMessage(playerid, rot, "This Gang already exists!");
return 1;
}
}
and these two doesn't work..