Raised This Month: $ Target: $400
 0% 

Script not working?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
_Rustynails_
Junior Member
Join Date: Aug 2004
Old 08-28-2004 , 21:35   Script not working?
Reply With Quote #1

Supposed to work amx_respawn <user>.
I keep getting the errors:

adminspawn.sma(13 -- 14) : error 033: array must be indexed (variable "respawn")
adminspawn.sma(17) : error 017: undefined symbol "spawn"

Please help?
Code:
#include <amxmodx> #include <amxmisc> public plugin_init() {   register_plugin("AMX-respawn","0.1","Rustynails")   register_clcmd("amx_respawn","do_respawn",ADMIN_KICK) } public do_respawn(id,level,cid) {   if (!cmd_access(id,level,cid,2))   return PLUGIN_HANDLED   new respawn[32], uid   respawn = read_argv(1,respawn,31)   uid = find_player("bhfl",respawn)   if (!uid) {     spawn(uid)     console_print(id,"[RESPAWN] Spawned successfully.")     } else {     console_print(id,"[RESPAWN] Could not find user.")   }   return PLUGIN_HANDLED }
_Rustynails_ is offline
 


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


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