13.11.2010, 07:15
(
Последний раз редактировалось DRIFT_HUNTER; 13.11.2010 в 07:27.
)
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
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;
}