Jump to content
MakeWebGames

Gang Armoury


Magictallguy

Recommended Posts

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

Link to comment
Share on other sites

  • 3 months later...

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.

Link to comment
Share on other sites

  • 1 month later...
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

Link to comment
Share on other sites

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...