Raised This Month: $ Target: $400
 0% 

Plugin Problems


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Votorx
Senior Member
Join Date: Jun 2004
Old 06-18-2004 , 22:16   Plugin Problems
Reply With Quote #1

I need some help making a plugin, I seem to be getting the same error over and over again when I start up the server "[AMXX] Plugin file open error (plugin "plugin name"). Does anyone know why? The compiler compiles the .sma file fine.

Also, how can I get the elapsed time of how long the server's been up for?

Thanks for you help

BTW: Here's the plugin, this is only like my second plugin so its very bad, but it still works (or should at least).
Attached Files
File Type: sma Get Plugin or Get Source (amx_servpref.sma - 857 views - 2.2 KB)
Votorx is offline
Send a message via AIM to Votorx Send a message via MSN to Votorx Send a message via Yahoo to Votorx
Votorx
Senior Member
Join Date: Jun 2004
Old 06-18-2004 , 22:41  
Reply With Quote #2

Also, can you just give me and example of what variables would be placed in these functions?

ENT_SetModel(iIndex, szModel[])
FindEntity(iIndex, szValue[])

I'm trying to make a plugin that allows me to put a model into a different mod, only I have absolutely no clue on how to do this, please help.
Votorx is offline
Send a message via AIM to Votorx Send a message via MSN to Votorx Send a message via Yahoo to Votorx
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 06-20-2004 , 06:47  
Reply With Quote #3

hum file open error: make sure your file is actually there and it is spelled correctly in plugins.ini ;]

FindEntity: iIndex: the search will begin on this (or after this?) entity. szValue: classname of the entity (like info_player_start or something).
ENT_SetModel: iIndex: Index of the entity; szModel: path to the (precached!) model (for example models/hehe.mdl)
__________________
hello, i am pm
PM is offline
Votorx
Senior Member
Join Date: Jun 2004
Old 06-20-2004 , 16:30  
Reply With Quote #4

Thank PM, but for some reason every time I try running the model, the server keeps freezing, why?

BTW, I figured out the problem, thanks anways.
Votorx is offline
Send a message via AIM to Votorx Send a message via MSN to Votorx Send a message via Yahoo to Votorx
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 06-20-2004 , 18:10  
Reply With Quote #5

Just a suggestion
Instead of server_cmd("amx_slay %s",name)
Use client_cmd(id,"kill)
I'm not understanding the point of that Increase variable.. you could just use 32
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull 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 14:43.


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