Bu Kodu , ACCOUNT_LOGIN'de ;
Oto üyeliğin içine yazacaksınız.
Yani Şuraya ;
Kod:
if @nRet = 0begin
begin 'in hemen altında , instert into ile başlayan kod vardır.
Onun hemen altına ekliyorsunuz ;
Kodu not Defteriyle İndirmek iÇin : http://www.mediafire.com/?2kmizzzjglz
Kod:
-- Code By Ganks - Ko-Cuce.Comdeclare @k int , @h intselect @k = count(strAccountID) from KO_S1.dbo.ACCOUNT_CHAR where bNation = 1select @h = count(strAccountID) from KO_S1.dbo.ACCOUNT_CHAR where bNation = 2if @k < @h --eğer karuslar daha az ise; begin insert into KO_S1.dbo.ACCOUNT_CHAR (strAccountID, bNation, bCharNum) values (@AccountID, @k, 0) end if @h < @k --eğer humanlar daha az ise; begin insert into KO_S1.dbo.ACCOUNT_CHAR (strAccountID, bNation, bCharNum) values (@AccountID, @h, 0) end if @h = @k begin insert into KO_S1.dbo.ACCOUNT_CHAR (strAccountID, bNation, bCharNum) values (@AccountID, @h, 0) end INSERT INTO WAREHOUSE ( strAccountID ) VALUES (@AccountID))
Kaydediyorsunuz. Artık Yeni üyelik açıldıgında Irk'ı Otomatik atayacaktır.! Bu Kod Ganks Tarafından Yazılmıştır..
