Raised This Month: $ Target: $400
 0% 

What is wrong here? [HELP]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Deadman0o06
Member
Join Date: Jun 2006
Old 06-26-2006 , 23:09   What is wrong here? [HELP]
Reply With Quote #1

I try to compile the code below and i get the following errors:

Code:
Code:
#include <amxmodx> #include <amxmisc> #include <fun> #define PLUGIN "Superman" #define VERSION ".01" #define AUTHOR "AUTHOR" new user_Gravity[] = "0.4" new user_Health[] = "250" public plugin_init() {  register_plugin(PLUGIN, VERSION, AUTHOR)  register_concmd("amx_superman","superman",ADMIN_KICK," :Creates a superman") } public superman(id) {  if(read_argc() == 0) {   console_print(id,"[SUPERMAN] You did not select a user!")   return PLUGIN_HANDLED  }  new user[32], uid  read_argv(1,user,32)  uid = find_player("bh",user)  if(uid == 0) {   console_print(id,"[SUPERMAN] There is no such user!")   return PLUGIN_HANDLED  }  client_cmd(uid,"name Superman!")  set_user_gravity(uid,user_Gravity)  set_user_health(uid,user_Health)  return PLUGIN_HANDLED }

Errors:
Code:
/home/groups/amxmodx/tmp3/textsfy9Ft.sma(28) : error 035: argument type mismatch (argument 2) /home/groups/amxmodx/tmp3/textsfy9Ft.sma(29) : error 035: argument type mismatch (argument 2)

Help plz
__________________
Deadman0o06 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 07:57.


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