Raised This Month: $ Target: $400
 0% 

Can someone repair my code ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-24-2010 , 16:01   Re: Can someone repair my code ?
Reply With Quote #1

Quote:
Originally Posted by GXLZPGX View Post
The function:

random_person()

has no id. You can't use:

give_extra( id )

because "id" isn't the function index.
What are you talking about? random_person() returns a random player index.
The variable 'id' is just a variable name and the name has no meaning for a variable except readability.

@sibox
Your code looks fine except for this:
Code:
    give_extra( random_person() );
That gives weapons to a different random player than what the first one is.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply



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 11:22.


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