22.01.2011, 20:52
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:
Also note ">" means is greater. I'm guessing you want to do ">=" is greater or equil to.
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);
}