Need HELP!!
I am learning Scripting ..... I have these questions with me :D
1. i want to exec from server console how to do that PHP Code:
2. i am getting undefined symbol error and argument matches error when i am compiling 3. can i stop a function\cvar which is being used by another plugin . if yes , plz tell how |
Re: Need HELP!!
server_exec() does not take any parameters.
Also, that is not how you execute server commands. Use server_cmd(). |
Re: Need HELP!!
K... :) But for 2 and 3
?? PLZ HELP!! |
Re: Need HELP!!
Your argument mismatch should be fixed by the server_exec() changed to server_cmd().
If not, then post your whole code. You can use a server/console command which sets values rather than a cvar. Though the plugin can just send a server command to set that value. You could use a menu where admins can set the values. Or you could use a file and read from it, though that's more of a hassle to change values. |
Re: Need HELP!!
PHP Code:
|
Re: Need HELP!!
Code:
Replace command with the command you want sent to the server console. It also allows formatting if you need it. For example: Code:
|
Re: Need HELP!!
i am asking for "changelevel " command
PHP Code:
|
Re: Need HELP!!
Using server_cmd() is the same as entering the command into the server console.
You should be able to answer that question yourself. |
| All times are GMT -4. The time now is 00:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.