first "plugin", scripting errors?
PHP Code:
test.sma<35> : error 017:undefined symbol "fm_user_gravity" Which is here Code:
fm_user_gravity(id,0.25) |
Re: first "plugin", scripting errors?
It's supposed to be fm_set_user_gravity.
But you should use "set_pev(id, pev_gravity, 0.25);" and replace fakemeta utility with fakemeta. |
Re: first "plugin", scripting errors?
What is the difference from what I had to what you suggested?
Well with the addition from above the plugin compiles and works .. sort of. PHP Code:
What causes this ? --- Also how can I make it so when you buy /grav you keep it until you die? Also could you tell me what the code is to keep it forever/until map change? ALSO just found out none of my cvars work .. ? |
Re: first "plugin", scripting errors?
To get a cvar's value you must use get_pcvar_(num/float/string),not use the plain value. Knowing this, the line:
Code:
cs_set_user_money(id, money-price)Code:
cs_set_user_money(id, money - get_pcvar_num(price)) |
Re: first "plugin", scripting errors?
The below 2 lines should both be using the cvar 'price' you created to detect the price you have gravity set to. I added the adjustment in the below code. I also added to your chat display advising the user the current cost of gravity if they did not have enough $.
if (money < 1000) ..... cs_set_user_money(id, money-price) PHP Code:
|
Re: first "plugin", scripting errors?
I don't unnderstand what you did, whats this mean?
PHP Code:
and PHP Code:
PHP Code:
|
| All times are GMT -4. The time now is 05:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.