Raised This Month: $ Target: $400
 0% 

Hit a wall, read through funcs and stuff before post


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 12-31-2010 , 14:41   Re: Hit a wall, read through funcs and stuff before post
Reply With Quote #3

  • Get off IE and use a different browser. IE often causes shitty indentation when posting code snippets, as shown above. This is probably why no one bothered to read it.
  • In your jointeam function you make the "array" one-celled. This will not store any information, as one cell is needed for nullification. Change it to two cells at the very least.
  • When comparing the jointeam argument you use integers instead of characters. You must either compare them to characters or convert the array cell to an integer.
  • In your rules function, you store their name in a string. To insert this into a message to the client, you must do something like this:
    Code:
    // BAD client_print( id, print_chat, "name The rules are.." ) // GOOD client_print( id, print_chat, "%s The rules are..", name )
    Multiple examples of this can be found around the fora.
  • Half of your rules function is unnecessary. Instead of hooking say and catching if the client has said /rules after it, just change the hook to catch "say /rules".
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode