Clarity of Script
1 Attachment(s)
This is actually an include file that contains some macros that I
think can drastically improve the clarity and readabillity of AMXX scripts. Consider the function for a console command: Code:
public eat_player(id, level, cid) {And just look at that boilerplate code! With gunblade.inc you can also use: Code:
concmd eat_player(...Put # of args here) {id, level, and cid are implicitly defined. Notice that this is much more clear: Here we have a console command that eats a player and take x args duh!. Currently gunblade.inc includes concmd, clcmd, and task. though I'm still learning amxx so I think clcmd and task need more in them. Enjoy! :lol: |
wrong forum? mouldes shld be the correct one..nice module anyway..
|
Well technically it isn't a module nor a script. I'll move it to scripting forum.
Also you're reading arguments the wrong way. Strings always need a null char to terminate them. |
| All times are GMT -4. The time now is 19:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.