In use? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: In use? (
/showthread.php?tid=72958)
In use? -
Lewwy - 11.04.2009
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.
Re: In use? -
Weirdosport - 11.04.2009
Does each faction have its own file or what?
Re: In use? -
Lewwy - 11.04.2009
They're all bunched in together in one .cfg, like the Godfather ones.
Re: In use? -
Lewwy - 11.04.2009
Any help pl40x?
Re: In use? -
13th - 11.04.2009
If it's like Gangs[GangID][Name] you could do strcmp in FOR loop for all gangs.
Re: In use? -
Lewwy - 11.04.2009
Alright, I'll try that.