Raised This Month: $ Target: $400
 0% 

Help me fix this


Post New Thread Reply   
 
Thread Tools Display Modes
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
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 04-07-2006 , 22:48  
Reply With Quote #2

Whoever modified my version of this is a fucking dumbass.

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))         return PLUGIN_HANDLED         new arg1[32]     read_argv(1,arg1,31)     if(!str_to_num(arg1))     {         client_print(0,print_chat,"[AMXX] Sharks and Minnows - off.")         server_cmd("mp_restartround 1")         return PLUGIN_HANDLED     }             new iPlayers[32],iPlayersnum,iPlayer     get_players(iPlayers,iPlayersnum,"a")             for(new iCount = 0;iCount < iPlayersnum;iCount++)     {         iPlayer = iPlayers[iCount]         new CsTeams:csTeam = cs_get_user_team(iPlayer)           if(csTeam == CS_TEAM_CT)           {             give_item(iPlayer,"weapon_elite")               give_item(iPlayer,"ammo_9mm")               give_item(iPlayer,"ammo_9mm")               give_item(iPlayer,"ammo_9mm")               give_item(iPlayer,"ammo_9mm")               give_item(iPlayer,"ammo_9mm")               give_item(iPlayer,"ammo_9mm")               give_item(iPlayer,"ammo_9mm")               give_item(iPlayer,"ammo_9mm")           }           if(csTeam == CS_TEAM_T)               set_user_noclip(iPlayer,1)       }     return PLUGIN_HANDLED   }
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
thomas_rox3
Junior Member
Join Date: Jan 2006
Old 04-07-2006 , 22:50  
Reply With Quote #3

I did... DX

I just thought I could fix it a bit seeing noone wanted to respond to my post in the other thread I assumed no wanted to help.

If you didn't turn your snm_mode cvar to 0 It was like a knifes only plugin for the T's and the CT's would just ruin the T's

Oh and BTW thanks for calling me a dumbass but I already knew that much
thomas_rox3 is offline
Send a message via MSN to thomas_rox3
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 04-07-2006 , 22:58  
Reply With Quote #4

Quote:
Originally Posted by thomas_rox3
Oh and BTW thanks for calling me a dumbass but I already knew that much
You're welcome, and I thought it was one of those idiots that knows nothing and goes around trying to solve other people's problems. I don't expect you to know how to fix that script, so I take that back.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
thomas_rox3
Junior Member
Join Date: Jan 2006
Old 04-07-2006 , 23:00  
Reply With Quote #5

Pfft I knew I'd get called names because the only script I know well enough to do on my own is Turing witch is like the worst script ever

Well for all your help you get +karma XD
thomas_rox3 is offline
Send a message via MSN to thomas_rox3
Reply



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