22.03.2018, 22:52
I think ID 9 and 16 are like that because you didn't fully remove the old organisations so the loop goes through the ids, finds the empty ones and still shows them. You should remove them manually, reassign the ids there from other organisations or something like that.
Or you could try and add another check, like if the organisation name is an empty string - skip that iteration of the loop.
You might need to define it if you don't have it yet https://sampwiki.blast.hk/wiki/Isnull
Or, I think the best solution, you can see if your GetOrganizationType(i) function works correctly, I think it should return 0 if the organisation doesn't exist. You can try posting it here for a fix by someone.
Not sure how to help with those tabs, I'd need to test it out before suggesting anything but I don't really have the means atm.
Or you could try and add another check, like if the organisation name is an empty string - skip that iteration of the loop.
PHP код:
if( isnull(GetOrganizationName(i)) ) continue;
Or, I think the best solution, you can see if your GetOrganizationType(i) function works correctly, I think it should return 0 if the organisation doesn't exist. You can try posting it here for a fix by someone.
Not sure how to help with those tabs, I'd need to test it out before suggesting anything but I don't really have the means atm.