AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help me fix this (https://forums.alliedmods.net/showthread.php?t=26713)

thomas_rox3 04-07-2006 22:42

Help me fix this
 
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

Hawk552 04-07-2006 22:48

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   }

thomas_rox3 04-07-2006 22:50

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 :D

Hawk552 04-07-2006 22:58

Quote:

Originally Posted by thomas_rox3
Oh and BTW thanks for calling me a dumbass but I already knew that much :D

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.

thomas_rox3 04-07-2006 23:00

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


All times are GMT -4. The time now is 16:29.

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