Jump to content
MakeWebGames

Recommended Posts

Posted

fixed on my site.

Edit growsetup.php and find line 65 where this is

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

and replace with this

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

if wouldn't work because i had more than 1 hydro kit.

  • 1 month later...
  • 5 months later...
Posted

Not criticism but after every function you dont need global variables only in the function that uses it but the if you define the variables you dont need it also $ir,$db,$c these are all defined already and not necessarily needed if you add the header to those pages :)

good work!!!

  • 2 months later...
Posted (edited)

sellweed.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

might be a bit buggy untested

Edited by Newbie
forgot to include globals.php
  • Like 1
  • 1 month later...
Posted (edited)

sell weed tried it bug in line 46 when u selling it also here are images of the weed bank to show it does work

Fatal error: Call to a member function query() on a non-object in /home/hellcent/public_html/sellweed.php on line 46

[ATTACH=CONFIG]1330[/ATTACH]

[ATTACH=CONFIG]1331[/ATTACH]

[ATTACH=CONFIG]1332[/ATTACH]

[ATTACH=CONFIG]1333[/ATTACH]

[ATTACH=CONFIG]1334[/ATTACH]

[ATTACH=CONFIG]1335[/ATTACH]

[ATTACH=CONFIG]1336[/ATTACH]

good attempt at it newbie +1 for it

home.jpg.f8cb98237ec0055cfd66a68fb74ac7ea.jpg

medical.jpg.a5e9353f164d56ce55dbf3d11fb260d4.jpg

plant.jpg.4cedb1d2f1aa4b2338028a4f725a80b4.jpg

sedbank.jpg.28b4f1173b465e2eb61fef0101792d7d.jpg

sellweed.jpg.67ff5747e48adb4b7068cbce40052741.jpg

243499651_yourweedinfo.jpg.a0aa81576eb77de3418e4ee1a3cc59b2.jpg

shop.jpg.1f9894f8480a485f5b8d1441198c6f80.jpg

Edited by Raven1992
Posted

Just from looking at the screenshots you supplied, it doesn't look like it's got the MCV2 wrapper on it.

 

  • Is globals included?
  • $db-> doesn't exist
  • If we're in a function, global $db
Posted

You need to add $userid to the list of global variables to the sell weed function and also you are using $newprofit in your update query but I don't see that variable which I believe it should be $newprof

  • 3 weeks later...
Posted
So I tried several different things in my tables, however, I keep getting the same "Query failed" error when I click on "Star Growing"

post up the error and the line of code from the error

  • 2 weeks later...
  • 4 weeks later...
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...