Raised This Month: $ Target: $400
 0% 

Help?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
_Rustynails_
Junior Member
Join Date: Aug 2004
Old 08-30-2004 , 13:59   Help?
Reply With Quote #1

Code:
#include <amxmodx> #include <amxmisc> #include <cstrike> #include <fun> public plugin_init() {   register_plugin("AMX-USERGRAVITY","0.1","Rustynails")   register_clcmd("amx_usergrav","do_grav",ADMIN_KICK) } public do_grav(id) {   new user[32], float:grav[32], uid   read_argv(1,user,31)   read_argv(2,grav,10)   uid = find_player("bl",user)   if (access(id,ADMIN_KICK)) {     if (uid) {       if (containi(grav, "") != -1) {         if (isdigit(grav)) {           if (!access(uid,ADMIN_IMMUNITY)) {             set_user_gravity(uid,grav)             console_print(id,"Set player's gravity.")             } else {             console_print(id,"That user is immune to this command.")           }           } else {           console_print(id,"Gravity must be in digit form.")         }         } else {         console_print(id,"You must include the gravity.")       }       } else {       console_print(id,"Could not find that user.")     }     } else {     console_print(id,"You lack sufficient access to this command.")   }   return PLUGIN_HANDLED }

I get these errors:

/home/users/amxmodx/tmp/phpgp6b56.sma(20) : error 035: argument type mismatch (argument 1)
/home/users/amxmodx/tmp/phpgp6b56.sma(22) : error 035: argument type mismatch (argument 2)
_Rustynails_ is offline
 



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


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