some noob-questions
1) what does this mean? :
if (!killer || !victim) // ! in front of id ? for example, I know that: if ( killer != gSuperPlayerCT || killer != gSuperPlayerT ) // means if a is not equal to b or a isn't equal to c 2) and what is the differences between these: public (weaponId) if(weaponId == CSW_KNIFE) { do... } and this: new weapon = get_user_weapon(id); if(weapon == CSW_KNIFE) { do... } |
Re: some noob-questions
PHP Code:
PHP Code:
means if a is not equal to b or a isn't equal to c if i understand you... yes.. ------------- public PUBLIC_NAME(weaponId) if(weaponId == CSW_KNIFE) { do... } this is a public function with the param weapoinId and the second you obten the weaponid; example PHP Code:
|
Re: some noob-questions
Quote:
For there to be no value, it would have to have 0. Here's an example: Code:
|
Re: some noob-questions
Quote:
|
Re: some noob-questions
Quote:
and use [php][/php] for code is PHP Code:
|
Re: some noob-questions
PHP Code:
|
Re: some noob-questions
Quote:
The if condition will be true if either there is no killer or there is no victim (which doesn't make sense). |
Re: some noob-questions
I found it in ut_killstreak_adv plugin. This looked unusual to me, so I was wondering.
Here's the context: PHP Code:
|
Re: some noob-questions
Operator ! means is not
Operator != means is not equal with Operator == means is equal with PHP Code:
Quote:
|
Re: some noob-questions
Another question. Is it right to pause an entire plugin in game, by hooking some event and then unpause the same way?
Example: Pause respawn.amxx when bomb is planted, and unpause on new round. |
| All times are GMT -4. The time now is 00:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.