Factions
#3

You need to create a global var called "Faction Count" or something. When you load the facions FactionCount++. And have the database AI. Then I guess:
pawn Код:
CMD:createfaction(playerid, params[])
{
        new string[180];
        //Use something like sscanf to extract the name
        if(UserStats[playerid][Admin] > 4)
        {
                format(string, sizeof(string), "INSERT INTO `Factions` (Name) VALUES('%s')", string);
         }
Also note ">" means is greater. I'm guessing you want to do ">=" is greater or equil to.
Reply


Messages In This Thread
Factions - by Anthonyx3' - 22.01.2011, 20:39
Re: Factions - by Mike Garber - 22.01.2011, 20:51
Re: Factions - by Kaylux - 22.01.2011, 20:52
Re: Factions - by Anthonyx3' - 22.01.2011, 20:52

Forum Jump:


Users browsing this thread: 1 Guest(s)