[Weired]STRFIND a bit bugged
#1

Ok what i need is to allow my admin's join gang without invite (just with cmd /agangjoin [NAME])
So i need to find ID from name for gang(gang chat FS)
And i haved much problems now i solved it for a bit but there is still BIG problem
What happening is next

I create gang's

Test
Drift
LOOL
Test2
Test3

and if i search ID's for Drift,LOOL and Test2 it return me correct ID
But! if i search for Test ID it return me Test3 ID

Any idea why these happen and how to fix these?
Here is how i check for ID
pawn Код:
for(id = 0; id < MAX_GANGS; id++)
        {
            if(strfind(gangNames[id], params, true) != -1)
            gangnum = id;
        }
Reply


Messages In This Thread
[Weired]STRFIND a bit bugged - by DRIFT_HUNTER - 13.11.2010, 07:15
Re: [Weired]STRFIND a bit bugged - by iggy1 - 13.11.2010, 08:56
Re: [Weired]STRFIND a bit bugged - by Retardedwolf - 13.11.2010, 09:01
Re: [Weired]STRFIND a bit bugged - by DRIFT_HUNTER - 13.11.2010, 09:26
Re: [Weired]STRFIND a bit bugged - by DRIFT_HUNTER - 13.11.2010, 09:46
Re: [Weired]STRFIND a bit bugged - by Hal - 13.11.2010, 13:22
Re: [Weired]STRFIND a bit bugged - by iggy1 - 13.11.2010, 14:00
Re: [Weired]STRFIND a bit bugged - by Retardedwolf - 13.11.2010, 19:27

Forum Jump:


Users browsing this thread: 1 Guest(s)