Raised This Month: $ Target: $400
 0% 

My vary first plugin with loads of errors


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
svendude
Member
Join Date: Aug 2004
Old 12-23-2004 , 16:46   My vary first plugin with loads of errors
Reply With Quote #1

Ok, I'm trying to make a plugin where it changes 1 persons gravity (don't tell me it's already made ok, i'm trying to learn ) but i got loads of errors. Here's the code:

Code:
/* Made by fragers (also known as carl or svendude) Use at your own risk! This is my first script so I am not responsible if this script makes your computer blow up. Author: Svendudes Version: 1.0 date started: December 23, 2004 */ #include <amxmodx> #include <amxmisc> #include <fun> public plugin_init() {     register_plugin("fun gravity","1.0","Svendude")     register_concmd("amx_gravity","funcgravity", ADMIN_BAN," : Changes the gravity of a player")     } public funcgravity(id,level,cid) {     if(!cmd_access(id,level,cid,1)) {         return PLUGIN_HANDLED         }         Float: set_user_gravity ( id, [ Float:gravity ] )         return PLUGIN_HANDLED }

I know it has something to do with the set_user_gravity line though. What is the right way to do what i'm trying to do (sorry if i sound mean i'm in kinda a rush
__________________
Sorry for being gone so long
svendude is offline
Send a message via Yahoo to svendude
 


Thread Tools
Display Modes

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 19:17.


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