Raised This Month: $ Target: $400
 0% 

Help me fix this


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
thomas_rox3
Junior Member
Join Date: Jan 2006
Old 04-07-2006 , 22:42   Help me fix this
Reply With Quote #1

Im truly a noob at this I've come this far only because another scripter helped me so much but I haven't been able to fix this part of it and am in a glitch so any see what Im missing in this script
Code:
#include <amxmodx>   #include <amxmisc>   #include <fun>   #include <cstrike>   new PLUGIN[] = "Sharks and Minnos"   new VERSION[] = "1.1"   new AUTHOR[] ="*[9mm]* Thomas"   public plugin_init()   {       register_plugin(PLUGIN, VERSION, AUTHOR)       register_concmd("amx_sandm","amx_sandm",ADMIN_LEVEL_H,"1 To turn on 0 To turn off") }   public amx_sandm(id,level,cid) {     if(!cmd_access(id,level,cid,2))     { new arg1[32] read_argv(1,arg1,31) if(equali(arg1,"1"))     {     for(new iTarget=0;iTarget<33;iTarget++)     {     client_print(0,print_chat,"Sharks and Minnos is now On!?!?!?!")     new CsTeams:csTeam = cs_get_user_team(iTarget)       if(csTeam == CS_TEAM_CT)       {         give_item(iTarget,"weapon_elite")           give_item(iTarget,"ammo_9mm")           give_item(iTarget,"ammo_9mm")           give_item(iTarget,"ammo_9mm")           give_item(iTarget,"ammo_9mm")           give_item(iTarget,"ammo_9mm")           give_item(iTarget,"ammo_9mm")           give_item(iTarget,"ammo_9mm")           give_item(iTarget,"ammo_9mm")       }       if(csTeam == CS_TEAM_T)           set_user_noclip(iTarget,1)       }    } return PLUGIN_HANDLED   } if(equali(arg1,"2")) server_cmd("sv_restartround 1") client_print(0,print_chat,"Sharks and Minnos is now Off!?!?!?!") return PLUGIN_HANDLED }

This is up to where Ive fixed it so far to my liking. Im just not sure what to do with my compliation errors more or less Im not sure what they mean....

Heres the error I get when I compile it

Error: Undefined symbol "arg1" on line 49
thomas_rox3 is offline
Send a message via MSN to thomas_rox3
 



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 16:29.


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