Item for days

Results 1 to 6 of 6
  1. #1
    Apprentice yougrean is offline
    MemberRank
    Aug 2010 Join Date
    11Posts

    Item for days

    Hello EveryOne!!!

    I"am sorry but you Help Me plz

    in zitem I get to
    rent_period="7"/>

    in MicroSoft Sql Server 2005
    dbo.cashshop I Give data it

    http://img600.imageshack.us/f/19286913.jpg/

    after @_@ I am
    Use ijji Full site in Ragezone change in ijji_itemshop on folder Gunz

    I am Change
    before
    mssql_query_logged("INSERT INTO AccountItem ([ShopItemID], [AID], [ItemID], [RentDate], [Cnt])VALUES('$itemid', '$UserAID', '$zitemid', GETDATE(), 0)");

    After
    mssql_query_logged("INSERT INTO AccountItem ([ShopItemID], [AID], [ItemID], [RentDate], [Cnt])VALUES('$itemid', '$UserAID', '$zitemid', GETDATE(), 48)");

    with like . . . . . . . . from somewhere.

    but but it doesn't work
    is not show days



    what i do something wrong ? or i forgot to do something ? who's know please help me.

    I Use Gunz CLient Server 2008 Part3

    Help Me plz !!!
    Last edited by yougrean; 17-01-11 at 04:49 PM.


  2. #2
    Member xTruongx is offline
    MemberRank
    Mar 2010 Join Date
    Michigan, USLocation
    79Posts

    Re: Item for days

    Problem: That code is only used to send permanment items only cause the column RentHourPeriod is missing

    Info: Might have to change this code abit to your document forms

    Code:
    mssql_query_logged("INSERT INTO AccountItem ([ShopItemID], [AID], [ItemID], [RentDate], [Cnt])VALUES('$itemid', '$UserAID', '$zitemid', GETDATE(), 48)");
    should be
    Code:
    mssql_query_logged("INSERT INTO AccountItem ([AID],[ItemID],[RentDate],[RentHourPeriod],[cnt]) VALUES ('".$_SESSION['AID']."','".$itemid."','".date('Y-m-d H:i:s')."','".$Rentperiod."',1)");

  3. #3
    DRGunZ 2 Creator wesman2232 is offline
    MemberRank
    Jan 2007 Join Date
    Erie, PALocation
    4,872Posts

    Re: Item for days

    or go through your zitem.xml and change iscashitem from true to false.

  4. #4
    Apprentice yougrean is offline
    MemberRank
    Aug 2010 Join Date
    11Posts

    Re: Item for days

    Quote Originally Posted by xTruongx View Post
    Problem: That code is only used to send permanment items only cause the column RentHourPeriod is missing

    Info: Might have to change this code abit to your document forms

    Code:
    mssql_query_logged("INSERT INTO AccountItem ([ShopItemID], [AID], [ItemID], [RentDate], [Cnt])VALUES('$itemid', '$UserAID', '$zitemid', GETDATE(), 48)");
    should be
    Code:
    mssql_query_logged("INSERT INTO AccountItem ([AID],[ItemID],[RentDate],[RentHourPeriod],[cnt]) VALUES ('".$_SESSION['AID']."','".$itemid."','".date('Y-m-d H:i:s')."','".$Rentperiod."',1)");
    Thank You !!

    But This Error
    I change to test
    mssql_query_logged("INSERT INTO AccountItem ([AID],[ItemID],[RentDate],[RentHourPeriod],[cnt]) VALUES ('".$_SESSION['AID']."','".$itemid."','".date('Y-m-d H:i:s')."','".$Rentperiod."',1)");

    change $Rentperiod."',1-1000)");

    error !!




    Where am I to Change it ???

  5. #5
    Ā  Phoenix is offline
    ModeratorRank
    Mar 2009 Join Date
    6,890Posts

    Re: Item for days

    Code:
    mssql_query_logged("INSERT INTO AccountItem ([AID], [ItemID], [RentDate], [Cnt], [RentHourPeriod])VALUES('$UserAID', '$itemid', GETDATE(), 0, 48)");
    Should be the query in your item shop script. Make sure that your website uses the variable "$UserAID".

  6. #6
    Apprentice yougrean is offline
    MemberRank
    Aug 2010 Join Date
    11Posts

    Re: Item for days

    Thank All
    It"S work Thank For Answer



Advertisement