help with fixing my fisrt plugin
would someone help with this for my first plugin. i already posted it and everything but iwanted to fix a problem with it. the whole point of the plugin was to give a person a deagle with out the trouble of remebering a guns index number but see when i was making the plugin i could change the name of the index number of even make it so that all i had to do was type amx_deagle <authID, name, @team, @all>. the original command is amx_deagle <authID, name, @team, @all> 11 you would have to tpye 11 because of the guns index number and see thats the problem i just want to make it so that i don't have to add the index number will somebody please help and amxx newbie out ? :cry: :oops: :cry: :oops: :cry:
|
Instead of using the number.
Just register the command with 2 args, without the 11. Then say, Code:
|
thanks i will try it out ^^ thanks for all the help kensai :D
|
i got rid of the 11 and got rid of that one part with the give_item and when i compiled it
/home/users/amxmodx/tmp3/php5YYmjS.sma(88) : error 029: invalid expression, assumed zero /home/users/amxmodx/tmp3/php5YYmjS.sma(89) : error 017: undefined symbol "target" /home/users/amxmodx/tmp3/php5YYmjS.sma(89) : warning 215: expression has no effect /home/users/amxmodx/tmp3/php5YYmjS.sma(89) : error 001: expected token: ";", but found ")" /home/users/amxmodx/tmp3/php5YYmjS.sma(89) : error 029: invalid expression, assumed zero /home/users/amxmodx/tmp3/php5YYmjS.sma(89) : fatal error 107: too many error messages on one line Compilation aborted. 5 Errors. Could not locate output file /home/groups/amxmodx/public_html/websc3/php5YYmjS.amx (compile failed). comes up :\ (oh yeh and if a made a really stupid mistake blame uh... ADHD) |
1 Attachment(s)
This should work.
You also might wanna give some credit to whoever made the original plugin. O.o |
fatalisDK.... i love you! how did you get it working ? (oh yeah and i will give you credit for helping me :P even though it wouldn't get approved... unless i add on to it )
|
| All times are GMT -4. The time now is 16:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.