Raised This Month: $ Target: $400
 0% 

CVARS?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 05-18-2012 , 05:38   Re: CVARS?
Reply With Quote #1

Lol, when you are changing the cvar you are changing the array so what is wrong on this -.-
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 05-18-2012 , 08:55   Re: CVARS?
Reply With Quote #2

Quote:
Originally Posted by Bilal Pro View Post
Lol, when you are changing the cvar you are changing the array so what is wrong on this -.-
almost everything. How the hell does ANY of your code work?
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 05-18-2012 , 09:16   Re: CVARS?
Reply With Quote #3

Quote:
Originally Posted by Bilal Pro View Post
Lol, when you are changing the cvar you are changing the array so what is wrong on this -.-
Why are you "lol-ing" at something when your the one who's wrong?

1) It is not an array - it is a variable / pointer holding the index of the CVar.
2) And no, when you change the CVar your changing the value that corresponds to the CVar index.


@Liverwiz you may want to put add an alive check to your spawn hook.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 05-18-2012 , 09:25   Re: CVARS?
Reply With Quote #4

Quote:
Originally Posted by hornet View Post
@Liverwiz you may want to put add an alive check to your spawn hook.
Isn't spawning dead against the laws of.....life? O.o
Though you are correct.....I need to get better at making sure people are alive before i do things to them.




necrophilia
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 05-18-2012 , 09:36   Re: CVARS?
Reply With Quote #5

Quote:
Originally Posted by Liverwiz View Post
Isn't spawning dead against the laws of.....life? O.o
Though you are correct.....I need to get better at making sure people are alive before i do things to them.




necrophilia
Well physically, yes, but from what I've learnt, Ham_Spawn will be called when a player is connecting so will give you an error if you use that player's index.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.

Last edited by hornet; 05-18-2012 at 09:36.
hornet is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 05-18-2012 , 10:37   Re: CVARS?
Reply With Quote #6

Quote:
Originally Posted by hornet View Post
Well physically, yes, but from what I've learnt, Ham_Spawn will be called when a player is connecting so will give you an error if you use that player's index.
THAT i was not aware of. Thanks!! But if i recall from testing....it worked just fine. Then again....it was a server where you were set automatically to 16000 and, thus, it didn't run anyway.
Just another reason to keep up good practice.....
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz 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 00:29.


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