dnenb Posted December 4, 2013 Posted December 4, 2013 Code updated (both the posts on here and my site), try that Can you say what you've changed? Quote
sniko Posted December 4, 2013 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
Magictallguy Posted December 4, 2013 Author 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
Reecey12345 Posted March 5, 2014 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
Magictallguy Posted March 5, 2014 Author 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
SRB Posted March 6, 2014 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
Zettieee Posted March 9, 2014 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
dnenb Posted April 12, 2014 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
Magictallguy Posted April 12, 2014 Author 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
dnenb Posted April 12, 2014 Posted April 12, 2014 Should also remove any items carried by users who have loaned from their now-dead gang? Quote
Magictallguy Posted April 13, 2014 Author 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
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.