1. Post #321
    CoderHire
    _Undefined's Avatar
    November 2007
    1,466 Posts
    Paste line 226 and 10 lines either side of it. And mark 226 with a comment.
    Reply With Quote Edit / Delete United Kingdom Show Events

  2. Post #322
    Gold Member
    Crap-Head's Avatar
    May 2010
    416 Posts
    just for test i copied and paste inventory code and appareantly if i have more than 2 tabs i get [addons\pointshop\lua\cl_pointshop.lua:226] '<eof>' expected near 'else'
    The problem is not that you have more than 2 tabs, i have 3 tabs in the version i got.
    Imma go ingame and TRY and fix this now. Il report back either in this post, or in a new one.

    EDIT:
    Sorted.

    What are you are doing wrong is that you have to of these:
    else 
    if POINTSHOP.Menu then
    POINTSHOP.Menu:Remove()
    end
    end
    end)
    

    You are having one above the storage code and one under it. Remove the one above it/under the inventory code and then it shuld work fine.
    Atleast it works for me. Well i cannot equip anything as i dont have the newest version so i cant do "pointshop_respawn" (Im using REV 61). Il probably go ahead and try to implant that into rev 61. Il see what i can get out of it.

    Edit:
    Also a slightly bug report. I dont know if this is for all versions, but my PlayerDeath hook does not work. Meaning that you can only earn points by killing NPCs. Ive trying sorting the code but it all looks fine. I also looked in the newest revision and its the exact same code.
    Reply With Quote Edit / Delete Denmark Show Events

  3. Post #323
    Gold Member
    Crap-Head's Avatar
    May 2010
    416 Posts
    Sorry for the double post but i had a few new "bug reports" and this could also be taken as a slightly bump.

    Just see the pictures, shuld explain enough.

    The items are out of the actually menu.

    You can JUST hold your mouse over the item and then it spins around out of the menu.

    Its not really anything that is a must, but i guess if you got time to it you could get around it.

    EDIT:
    Aww. What happend to the thumb tags? :/
    Reply With Quote Edit / Delete Denmark Show Events Zing Zing x 1Winner Winner x 1Artistic Artistic x 1 (list)

  4. Post #324
    CoderHire
    _Undefined's Avatar
    November 2007
    1,466 Posts
    Sorry for the double post but i had a few new "bug reports" and this could also be taken as a slightly bump.

    Just see the pictures, shuld explain enough.

    The items are out of the actually menu.

    You can JUST hold your mouse over the item and then it spins around out of the menu.

    Its not really anything that is a must, but i guess if you got time to it you could get around it.

    EDIT:
    Aww. What happend to the thumb tags? :/
    I think someone posted a fix for this in the WAYWO thread. Something with the render library and scissors.
    Reply With Quote Edit / Delete United Kingdom Show Events

  5. Post #325

    March 2011
    1 Posts
    Alright so _Undefined, I am using your shop for my deathrun server, and i have a question. When people leave the server after buying a hat and come back the hat doesnt show up. Is there a way to fix this? I am using current version of pointshop, and need this fixed
    Reply With Quote Edit / Delete United States Show Events

  6. Post #326
    CoderHire
    _Undefined's Avatar
    November 2007
    1,466 Posts
    I aren't working on it any more. Use revision 61 if you want a working copy.
    Reply With Quote Edit / Delete United Kingdom Show Events

  7. Post #327
    Kazak1's Avatar
    December 2010
    74 Posts
    I aren't working on it any more. Use revision 61 if you want a working copy.
    sad =/
    Reply With Quote Edit / Delete Portugal Show Events

  8. Post #328
    Kazak1's Avatar
    December 2010
    74 Posts
    Does someone know how to make REV61 draw the models when a player buys it instantly ? instead of having to respawn in order to see it ?
    Reply With Quote Edit / Delete Portugal Show Events Dumb Dumb x 1 (list)

  9. Post #329
    guys i have unique darkrp, k?
    chuck14's Avatar
    May 2008
    1,358 Posts
    Why would you stop working on this? Why?
    Reply With Quote Edit / Delete United States Show Events

  10. Post #330
    Stinger771's Avatar
    March 2011
    2 Posts
    Exactly how do we get revision61? are there archives?
    Reply With Quote Edit / Delete United States Show Events

  11. Post #331
    Gold Member
    Crap-Head's Avatar
    May 2010
    416 Posts
    Exactly how do we get revision61? are there archives?
    Posted this back on page 5 (or 6)
    Quoting myself:
    "Alright so for the people who does not know how to put back your SVN here is a little guide:
    1. Right click your folder.
    2. Press TortoiseSVN and then press Update to revision.
    3. You will have a window appearing and you simply time in 61.

    It will delete the folder items and it will update some files aka downgrading them."
    Reply With Quote Edit / Delete Denmark Show Events

  12. Post #332
    Ground Zer0's Avatar
    February 2011
    2 Posts
    Sorry for the double post but i had a few new "bug reports" and this could also be taken as a slightly bump.

    Just see the pictures, shuld explain enough.

    The items are out of the actually menu.

    You can JUST hold your mouse over the item and then it spins around out of the menu.

    Its not really anything that is a must, but i guess if you got time to it you could get around it.

    EDIT:
    Aww. What happend to the thumb tags? :/
    What version is this, i like it and want it!!!
    Also, REV 61 gives me the same old thing as the origonal post, the first version. I did what you said to do with tortoiuse and it said it did it but...... apperently not
    Reply With Quote Edit / Delete United States Show Events Dumb Dumb x 2 (list)

  13. Post #333
    Gold Member
    Delremos's Avatar
    June 2007
    150 Posts
    I think someone posted a fix for this in the WAYWO thread. Something with the render library and scissors.
    local PANEL = {}
    function PANEL:Paint()
    	local x, y = self:LocalToScreen( 0, 0 )
    	local w, h = self:GetSize()
    	
    	local sl, st, sr, sb = x, y, x + w, y + h
    	
    	local p = self
    	while p:GetParent() do
    		p = p:GetParent()
    		local pl, pt = p:LocalToScreen( 0, 0 )
    		local pr, pb = pl + p:GetWide(), pt + p:GetTall()
    		sl = sl < pl and pl or sl
    		st = st < pt and pt or st
    		sr = sr > pr and pr or sr
    		sb = sb > pb and pb or sb
    	end
    	
    	render.SetScissorRect( sl, st, sr, sb, true )
    		self.BaseClass.Paint( self )
    	render.SetScissorRect( 0, 0, 0, 0, false )
    end
    vgui.Register( "DModelPanel2", PANEL, "DModelPanel" )

    I'm sure there's a better way to do it, but it works.
    Reply With Quote Edit / Delete Australia Show Events Friendly Friendly x 1 (list)

  14. Post #334
    Gold Member
    Crap-Head's Avatar
    May 2010
    416 Posts
    What version is this, i like it and want it!!!
    Also, REV 61 gives me the same old thing as the origonal post, the first version. I did what you said to do with tortoiuse and it said it did it but...... apperently not
    Its Crap Version.
    Mhee, i just modified it abit.

    What do you mean by "the first version"? Once you go back to rev61 everything works fine.

    local PANEL = {}
    function PANEL:Paint()
    	local x, y = self:LocalToScreen( 0, 0 )
    	local w, h = self:GetSize()
    	
    	local sl, st, sr, sb = x, y, x + w, y + h
    	
    	local p = self
    	while p:GetParent() do
    		p = p:GetParent()
    		local pl, pt = p:LocalToScreen( 0, 0 )
    		local pr, pb = pl + p:GetWide(), pt + p:GetTall()
    		sl = sl < pl and pl or sl
    		st = st < pt and pt or st
    		sr = sr > pr and pr or sr
    		sb = sb > pb and pb or sb
    	end
    	
    	render.SetScissorRect( sl, st, sr, sb, true )
    		self.BaseClass.Paint( self )
    	render.SetScissorRect( 0, 0, 0, 0, false )
    end
    vgui.Register( "DModelPanel2", PANEL, "DModelPanel" )

    I'm sure there's a better way to do it, but it works.
    You sir... <3
    Reply With Quote Edit / Delete Denmark Show Events

  15. Post #335
    Ground Zer0's Avatar
    February 2011
    2 Posts
    Its Crap Version.
    Mhee, i just modified it abit.

    What do you mean by "the first version"? Once you go back to rev61 everything works fine.



    You sir... <3
    I aded you on steam please accept
    Reply With Quote Edit / Delete United States Show Events

  16. Post #336
    dimsen's Avatar
    January 2011
    27 Posts
    In revision 61 its maked so when people buy a weapon they get it until they die when they die its disappear.

    The current code is:

    Scout = {
    Name = "Scout",
    Enabled = true,
    Description = "Get a SCOUT sniper!",
    Cost = 2500,
    Model = "models/weapons/w_snip_scout.mdl",
    Functions = {
    OnGive = function(ply, item)
    ply:Give("weapon_real_cs_scout")
    end,

    OnTake = function(ply, item)
    item.Hooks.PlayerDeath(ply, item)
    end
    },
    Hooks = {
    PlayerDeath = function(ply, item)
    if ply:PS_HasItem(item.ID) then
    ply:PS_TakeItem(item.ID)
    if ply:GetWeapon("weapon_real_cs_scout") then
    ply:GetWeapon("weapon_real_cs_scout"):Remove()
    end
    end
    end
    }
    },

    Could someone maybe post a new edited code who doesn't make people lose the weapon?
    Reply With Quote Edit / Delete Denmark Show Events Dumb Dumb x 2 (list)

  17. Post #337

    April 2011
    5 Posts
    Hey can anyone help me? When I press F4 to bring up the pointshop menu an little error pops up saying something like: [cl_pointshop.lua:135] attempt to index field 'Config' (a nil value). I can't find anything to help me fix it though =(
    Thanks in advance. =D
    Reply With Quote Edit / Delete United Kingdom Show Events

  18. Post #338
    Gold Member
    .\\Shadow}'s Avatar
    November 2009
    902 Posts
    Hey can anyone help me? When I press F4 to bring up the pointshop menu an little error pops up saying something like: [cl_pointshop.lua:135] attempt to index field 'Config' (a nil value). I can't find anything to help me fix it though =(
    Thanks in advance. =D
    You do realize he's not working on this any more, right?
    Reply With Quote Edit / Delete United States Show Events

  19. Post #339

    April 2011
    5 Posts
    I did not =P
    thanks for telling me though
    Reply With Quote Edit / Delete United Kingdom Show Events

  20. Post #340
    Gold Member
    BummieHEad's Avatar
    January 2010
    466 Posts
    I did not =P
    thanks for telling me though
    Use Rev.61
    Reply With Quote Edit / Delete Norway Show Events

  21. Post #341
    beasty's Avatar
    July 2010
    1,042 Posts
    You do realize he's not working on this any more, right?
    So where do we download it.. or can't we anymore?

    The svn thing isn't working, i need a password.

    Never downloaded or used SVN's before lol
    Reply With Quote Edit / Delete United Kingdom Show Events

  22. Post #342
    CoderHire
    _Undefined's Avatar
    November 2007
    1,466 Posts
    So where do we download it.. or can't we anymore?

    The svn thing isn't working, i need a password.

    Never downloaded or used SVN's before lol
    You don't need a password. http://www.facepunch.com/showthread.php?p=13583073
    Reply With Quote Edit / Delete United Kingdom Show Events

  23. Post #343

    April 2011
    5 Posts
    Used rev 61, exactly the same error and the same problem. Tried a few fixes. i.e. clearing my cache, deleting tons of random addons I've collected etc etc
    getting really annoyed now because i'm the only person on TTT that can't buy stuff =(
    please anyone!
    Reply With Quote Edit / Delete United Kingdom Show Events

  24. Post #344

    January 2011
    20 Posts
    It doesn't work when I try and sell items back, I reload the store and their still in my inventory, and I can keep reselling the item and earn heaps of points but I don't want that.
    Reply With Quote Edit / Delete Australia Show Events

  25. Post #345
    Derek_SM's Avatar
    January 2011
    330 Posts
    Good luck getting the author to try and fix it - He quit Lua scripting.
    Reply With Quote Edit / Delete United States Show Events

  26. Post #346
    Gold Member
    Crap-Head's Avatar
    May 2010
    416 Posts
    It doesn't work when I try and sell items back, I reload the store and their still in my inventory, and I can keep reselling the item and earn heaps of points but I don't want that.
    Go back to Rev 61.
    Reply With Quote Edit / Delete Denmark Show Events

  27. Post #347

    April 2011
    1 Posts
    Can someone code a thrid person item into here please? :)

    Also this is AMAZING good work _Undefined!
    Reply With Quote Edit / Delete United Kingdom Show Events

  28. Post #348
    CoderHire
    _Undefined's Avatar
    November 2007
    1,466 Posts
    I've removed the SVN. Latest and revision 61 downloads are in OP. Don't contact me about this. Ever.
    Reply With Quote Edit / Delete United Kingdom Show Events Funny Funny x 4Dumb Dumb x 2 (list)

  29. Post #349

    February 2011
    53 Posts
    There are just to many flaws, like when someone sells something it wont remove it.
    Reply With Quote Edit / Delete Canada Show Events Dumb Dumb x 2 (list)

  30. Post #350
    Gold Member
    Crap-Head's Avatar
    May 2010
    416 Posts
    There are just to many flaws, like when someone sells something it wont remove it.
    Grrrr return to rev 61 and everything will be working fine.
    Reply With Quote Edit / Delete Denmark Show Events

  31. Post #351

    October 2010
    37 Posts
    Rev 61 works for my server pritty fine now editing it a bit :)
    Reply With Quote Edit / Delete Netherlands Show Events Optimistic Optimistic x 1Artistic Artistic x 1 (list)

  32. Post #352
    CoderHire
    _Undefined's Avatar
    November 2007
    1,466 Posts
    PointShop has a new maintainer. werewolf0020
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Dumb Dumb x 4 (list)

  33. Post #353

    April 2011
    5 Posts
    Awesome, thanks _Undefined
    Reply With Quote Edit / Delete Windows 7 Australia Show Events

  34. Post #354
    werewolf0020's Avatar
    October 2009
    5,855 Posts
    Submitted new revision

    So far the only issue its that after you buy or sell an item you have to manually close and open the pointshop window

    i swear ill fix this as soon as i can
    Reply With Quote Edit / Delete Windows 7 Venezuela Show Events

  35. Post #355
    Zombiedance's Avatar
    June 2009
    243 Posts
    I'm using this on my server but i keep having problems with it when i try to set points for myself. It ALWAYS comes back with this error "[addons\pointshop\lua\sv_pointshop.lua:166] attempt to call method 'IsAdmin' (a nil value)" Anyone able to help me? Please.
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  36. Post #356
    CoderHire
    _Undefined's Avatar
    November 2007
    1,466 Posts
    I'm using this on my server but i keep having problems with it when i try to set points for myself. It ALWAYS comes back with this error "[addons\pointshop\lua\sv_pointshop.lua:166] attempt to call method 'IsAdmin' (a nil value)" Anyone able to help me? Please.
    Your admin mod has removed the _R.Player:IsAdmin() function.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  37. Post #357
    Zombiedance's Avatar
    June 2009
    243 Posts
    I installed ulx & ulib and it wont let me run any commands which admin system should i run?
    Reply With Quote Edit / Delete Windows 7 United States Show Events Dumb Dumb x 1 (list)

  38. Post #358
    Gold Member
    .\\Shadow}'s Avatar
    November 2009
    902 Posts
    I installed ulx & ulib and it wont let me run any commands which admin system should i run?
    This isn't related to the PointShop, you should post in the ULX thread.
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  39. Post #359
    werewolf0020's Avatar
    October 2009
    5,855 Posts
    Can someone code a thrid person item into here please? :)

    Also this is AMAZING good work _Undefined!
    Added

    Also Added new revision And everything Works fine now (:
    Reply With Quote Edit / Delete Windows 7 Venezuela Show Events

  40. Post #360
    Zombiedance's Avatar
    June 2009
    243 Posts
    This isn't related to the PointShop, you should post in the ULX thread.
    I'm talking about PointShop commands. Ex: ps_setpoints bleh bleh bleh
    Reply With Quote Edit / Delete Windows 7 United States Show Events