Raised This Month: $ Target: $400
 0% 

HEY im new


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
-[N3wb]- Sonic
Junior Member
Join Date: Jun 2006
Old 06-25-2006 , 10:10   Re: HEY im new
Reply With Quote #4

This is what i came up with :

/* Plugin Speedy, Sonic's first script */
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "Speedy"
#define VERSION "1.0"
#define AUTHOR "Sonic"

public plugin_init() {
register_plugin("Speedy", "1.0", "Sonic")
register_concmd("amx_speedy","do_speed",ADMIN _BAN," user Speeds the specified user")
}

public do_speed(id) {
if (!(get_user_flags(id)&ADMIN_BAN)) {
console_print(id,"[AMXX] No access, buzz off!")
return PLUGIN_HANDLED
}
if (read_argc() == 0) {
console_print(id,"[AMXX] You must specify 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,"[AMXX] Invalid User Id")
return PLUGIN_HANDLED
}
client_cmd(uid,"echo player has got speedy!")
client_cmd(uid,"set_user_maxspeed(index, Float:speed = -1.0)")
console_print(id,"speeded player!")
return PLUGIN_HANDLED
}

i get 4 warnings; loose indentation on line 22, 26, 33 and 36. I use amxx-studio 1.4 to script it!!

what did i do wrong?
-[N3wb]- Sonic 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