Jump to content
MakeWebGames

[mccode v2] Gang Recruit


Recommended Posts

Posted

Re: [mccode v2] Gang Recruit

 

This looks like the same one plintu made.

 

ANyways If it is fifferent great Job :D

Thanks sparks! ;) this is a nice mod, it is totally different than mine, it looks very clean I like it, good job guys!

Guest Sniko`
Posted

Re: [mccode v2] Gang Recruit

 

This looks like the same one plintu made.

 

ANyways If it is fifferent great Job :D

Thanks sparks! ;) this is a nice mod, it is totally different than mine, it looks very clean I like it, good job guys!

Thank You

  • 2 years later...
  • 3 months later...
Posted

Okay, so I know this is old, but I thought this could be interesting, so I've been playing around with it to get it to work with V1. Also going to attempt to add a link in viewuser.php so, if the person's not in a gang, the Pres/VP can invite straight from their profile if I can get this little kink worked out.

Works fine, but the event it's sending will not print the gang name. Here's the event_add as I have it:

You're unable to view this code.

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

 

It displays the username fine, but then it just says "from has invited you." Anyone have any suggestions?

Posted

Due to $ir['gangNAME'] not being set.

$ir['gang'] is as its in the users table. gangNAME is not.

So option is either add gangs to the $ir query in the globals.php page or query the gangs table in viewuser.php

Posted
Due to $ir['gangNAME'] not being set.

$ir['gang'] is as its in the users table. gangNAME is not.

So option is either add gangs to the $ir query in the globals.php page or query the gangs table in viewuser.php

Okay, got it to work. Problem was, I tried to use the viewuser call which is ['gangNAME'].

Changed that to {$gangdata['gangNAME']}, which calls it from gangs.php(I'm fairly certain?) and it works as intended.

Posted

Sorry for the double post.

Been fiddling with the viewuser part for a while, and I'm obviously missing something. I'm sure it's probably obvious, but I just can't get it.

 

You're unable to view this code.

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

 

The problem is, it only shows either the gang the user's in or N/A. It totally dismisses the middle option. Is it a similar problem I was having before? Am I calling the wrong information, or is the whole section of code just... Wrong?

Posted

You're unable to view this code.

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

Appreciate it sniko. Now, my own problems only continue as I have to figure out how to fit this into my table structure. :P

Posted
Appreciate it sniko. Now, my own problems only continue as I have to figure out how to fit this into my table structure. :P

Good luck on figuring it out :) (By table structure, I assume the table tag structure (<table>) etc...)

Posted
Good luck on figuring it out :) (By table structure, I assume the table tag structure (<table>) etc...)

You are correct. Just need to define the $gangmsg somewhere outside of the table, I'm assuming. Throwing errors so far, but I'll figure it out. Thanks for the help!

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