Raised This Month: $ Target: $400
 0% 

Need HELP!!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
raghunarnindi001
Member
Join Date: Apr 2011
Old 07-24-2011 , 01:23   Need HELP!!
Reply With Quote #1

I am learning Scripting ..... I have these questions with me

1. i want to exec from server console how to do that

PHP Code:
server_exec() 
plz tell how to use this command

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
raghunarnindi001 is offline
Old 07-24-2011, 01:27
wrecked_
This message has been deleted by wrecked_. Reason: heh
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-24-2011 , 04:17   Re: Need HELP!!
Reply With Quote #3

server_exec() does not take any parameters.
Also, that is not how you execute server commands.

Use server_cmd().
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
raghunarnindi001
Member
Join Date: Apr 2011
Old 07-25-2011 , 09:52   Re: Need HELP!!
Reply With Quote #4

K... But for 2 and 3

??

PLZ HELP!!
raghunarnindi001 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-25-2011 , 10:04   Re: Need HELP!!
Reply With Quote #5

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.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
raghunarnindi001
Member
Join Date: Apr 2011
Old 07-27-2011 , 03:22   Re: Need HELP!!
Reply With Quote #6

PHP Code:
server_cmd 
didnt work can u plz give an demonstration to "changelevel " command
raghunarnindi001 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:54.


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