Change secondary weapon to a new one
Hi guys!
I am beginner in programming plugins and that kind of stuff, so please don't judge me so much :) Thank you! So I have that: PHP Code:
|
Re: Change secondary weapon to a new one
PHP Code:
as for the usp or glock thing, strip their weapons and give them a deagle |
Re: Change secondary weapon to a new one
Strip their weapons first, then give them a weapon.
PHP Code:
|
Re: Change secondary weapon to a new one
Quote:
|
Re: Change secondary weapon to a new one
Quote:
PHP Code:
|
Re: Change secondary weapon to a new one
Quote:
PHP Code:
Because when I compile it, It gives me 1 warning on that line... What should I do? and when I deleted that line: PHP Code:
|
Re: Change secondary weapon to a new one
Whats the warning?
PHP Code:
|
Re: Change secondary weapon to a new one
Quote:
http://joxi.ru/uploads/prod/20130207...9a64c1ee1.jpeg and line 144 is that one: PHP Code:
And tried that code: PHP Code:
Can anyone help me to fix that... |
Re: Change secondary weapon to a new one
You can ignore that warning or if you really want to fix search for "loose indentation". Also, strip_user_weapons will remove ALL weapons from players. To give them a knife just add the code below to your plugin.
PHP Code:
|
Re: Change secondary weapon to a new one
loose identation usually means that your code looks like this: (note that code itself is the same)
Code:
{Code:
if(player) |
| All times are GMT -4. The time now is 20:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.