In use?
#1

How can I check if a name is in use.
I'm saving using Astro's method, with enums and such. And I'm building a user creation of factions for roleplay.
The user has to type /buyfaction.
Then he will be asked to enter a name for his faction, when he does how can I check if it's not already taken, and if it is then it will say please enter another name.
An example would be great, thanks.
Reply
#2

Does each faction have its own file or what?
Reply
#3

They're all bunched in together in one .cfg, like the Godfather ones.
Reply
#4

Any help pl40x?
Reply
#5

If it's like Gangs[GangID][Name] you could do strcmp in FOR loop for all gangs.
Reply
#6

Alright, I'll try that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)