AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   What is wrong here? [HELP] (https://forums.alliedmods.net/showthread.php?t=40393)

Deadman0o06 06-26-2006 23:09

What is wrong here? [HELP]
 
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 :)

v3x 06-26-2006 23:17

Re: What is wrong here? [HELP]
 
new Float:user_Gravity = 0.4 // float value
new user_Health = 250 // integer value

Deadman0o06 06-27-2006 11:47

Re: What is wrong here? [HELP]
 
Oh thank you. Please dontmind the noobish questions as i am still learning :)


All times are GMT -4. The time now is 07:58.

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