tictaczep / darkrp

Automatically exported from code.google.com/p/darkrp
0 stars 0 forks source link

Bug When Buying Doors #329

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The problem is that everytime i try buy i door, it wil keep stay: uowned and i 
get this error: 
You've bought this door for $20
DarkRP\gamemode\cl_init.lua:1045: bad argument #1 to 'match' (string expected, 
got nil)
You have sold this for $13
DarkRP\gamemode\cl_init.lua:1045: bad argument #1 to 'match' (string expected, 
got nil)
You've bought this door for $20
DarkRP\gamemode\cl_init.lua:1045: bad argument #1 to 'match' (string expected, 
got nil)

same when i try selling the door.

I got latest Revision (added 39Mins ago)

Original issue reported on code.google.com by Simon_Langrind@hotmail.com on 11 Jun 2010 at 3:31

GoogleCodeExporter commented 8 years ago
Also i another bug i think:

When i turn rp_restrictbuypistol to 1, its not working to buy a Gun if your 
example: a gangster you can still not buy a gun if theres no gun dealer.

Original comment by Simon_Langrind@hotmail.com on 11 Jun 2010 at 6:55

GoogleCodeExporter commented 8 years ago
Regarding your first post: search cl_init.lua for "value = tonumber(value) or 
value" and it should take you to within the RetrievePlayerVar function. Go one 
line up, make a new line and paste this: local stringvalue = value

Falco forgot to define the variable stringvalue in this function, so you can do 
it yourself easily.

Regarding your second post, I'm not sure I understand what you're saying. 
rp_restrictbuypistol, when turned on, will RESTRICT players from buying guns 
unless they are a gun dealer. Try setting it to 0 instead if you want your 
players to buy guns without requiring a dealer.

Original comment by grunged.km@gmail.com on 11 Jun 2010 at 9:04

GoogleCodeExporter commented 8 years ago
thanks alot, doors are working now :)

Original comment by Simon_Langrind@hotmail.com on 11 Jun 2010 at 10:10

GoogleCodeExporter commented 8 years ago
Glad I could help. :)

Original comment by grunged.km@gmail.com on 12 Jun 2010 at 5:07

GoogleCodeExporter commented 8 years ago

Original comment by fpeijnen...@gmail.com on 12 Jun 2010 at 8:34