dnenb Posted December 4, 2013 Share Posted December 4, 2013 Code updated (both the posts on here and my site), try that Can you say what you've changed? Quote Link to comment Share on other sites More sharing options...
sniko Posted December 4, 2013 Share Posted December 4, 2013 Can you say what you've changed? You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. ;) Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted December 4, 2013 Author Share Posted December 4, 2013 Can you say what you've changed? Old code: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. New code: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I've had a little trouble with the first set out on a few systems, though I'm not sure why. Either way, that should work fine You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. ;) You lovely man, you! :P Quote Link to comment Share on other sites More sharing options...
Reecey12345 Posted March 5, 2014 Share Posted March 5, 2014 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. yourgang.php Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted March 5, 2014 Author Share Posted March 5, 2014 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. yourgang.php Track which query is pegging that error. As soon as you do that, I'll be able to help you :) Quote Link to comment Share on other sites More sharing options...
SRB Posted March 6, 2014 Share Posted March 6, 2014 Since it tells you the query is; You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. We can do a little brainstorming; 1. You state it's in the yourgang.php file 2. That file uses functions for everything 3. The query clearly shows you that the `userid` was not set. With those 3 points, I'll take a shot in the dark that is more than likely going to be correct. ----- Conclusion Your query, in the code itself, probably looks like; You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Inside your function, you possibly have the globals such as; You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. This means that $userid is not defined and resulting in a null value, hence your error. ----- To fix 1. Find the line that's causing the error 2. Make sure the function calls the required variable 3. Change it to suit. ----- Final note ~ Error explains the problem, albeit without spelling it out completely. Shouldn't take long to solve it yourself. Quote Link to comment Share on other sites More sharing options...
Zettieee Posted March 9, 2014 Share Posted March 9, 2014 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. yourgang.php try looking for $leader = blah something here change it to $leader = $gangdata['gangPRESIDENT']; Quote Link to comment Share on other sites More sharing options...
dnenb Posted April 12, 2014 Share Posted April 12, 2014 When a gang is defeated in a gang war, and the gang is deleted, does anything happen to the items that were in the gang armory? (I'm not at a place where I can easily check the code:) Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted April 12, 2014 Author Share Posted April 12, 2014 When a gang is defeated in a gang war, and the gang is deleted, does anything happen to the items that were in the gang armory? (I'm not at a place where I can easily check the code:) That requires an update to the attack.php (by default). Find the place where the DELETE FROM `gangs` [...] query is, then add below: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Replace You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. with whatever the gang ID variable is Quote Link to comment Share on other sites More sharing options...
dnenb Posted April 12, 2014 Share Posted April 12, 2014 Should also remove any items carried by users who have loaned from their now-dead gang? Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted April 13, 2014 Author Share Posted April 13, 2014 Should also remove any items carried by users who have loaned from their now-dead gang? You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
dnenb Posted April 13, 2014 Share Posted April 13, 2014 Thank you!: ) Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted February 28, 2019 Author Share Posted February 28, 2019 Code updated 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.