Jump to content
MakeWebGames

[v1][FREE] Gang Welcome Message


CraigF

Recommended Posts

Basicly, When someone joins the gang they get sent the welcome message that the gang PRESIDENT can make, so enjoy!

I made it this morning for my game but i decided you all should have it as i think its a nice little add on!

(it should work, it works 100% for me but i have had to re-do it as i couldnt remember what i did)

 

Find in yourgang.php:

 

You're unable to view this code.

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

 

add under:

You're unable to view this code.

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

 

then find:

You're unable to view this code.

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

 

add after

You're unable to view this code.

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

 

then find:

You're unable to view this code.

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

 

replace with

You're unable to view this code.

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

 

then find

You're unable to view this code.

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

 

add under:

You're unable to view this code.

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

 

then in creategang.php find:

You're unable to view this code.

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

 

and replace with:

You're unable to view this code.

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

 

Do this SQL

You're unable to view this code.

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

 

Please give me +1 Karma as for some reason i have -100! - Im not a bad guy! why do i have this!!!

Link to comment
Share on other sites

Re: [v1][FREE] Gang Welcome Message

Woah, no need to make the column text!

Text allows up to 65,000ish characters.. which is way more space than you'll ever need for a welcome message

Try lipsum.org, typing in 65,000 and select 'bytes', it's the closest you'll get to seeing how much you'll store in a text field, and you'll realise it's overkill

Just use varchar or char, with a max of maybe 150

150 characters:

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas elit. Aliquam iaculis porttitor risus. Aenean sit amet neque ut justo orci aliquam.

Unless you have a long-winded president, then set it to maybe 200-255

Point is text is overkill :P

Link to comment
Share on other sites

Re: [v1][FREE] Gang Welcome Message

One other thing you'll need to do is edit your creategang.php file

You need to add an extra '' like so after the '$desc', or you'll get a column count doesn't match error when trying to create a gang :)

Old

You're unable to view this code.

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

 

New

You're unable to view this code.

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

Link to comment
Share on other sites

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