AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   What do the colors of the code mean and how do I make them that color? (https://forums.alliedmods.net/showthread.php?t=75014)

drumzplaya13 07-29-2008 03:44

What do the colors of the code mean and how do I make them that color?
 
I am new to scripting and I just need to learn some basics first before I really try and jump into things...

So I see in plugins that different parts of the code have different colors to them, are the colors automatic or do I have to change them by hand (I was going to use notepad to create the plugin/code)? How do I compile a plugin, and if i compile it will it automatically change the color of the code to make it work?


Code:

#include <amxmodx>
#include <amxmisc> //This contains some useful functions
#include <fun>    //This contains the function to change health
 
new PLUGIN[]="Change Health"
new AUTHOR[]="BAILOPAN"
new VERSION[]="1.00"
 
public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_concmd("amx_hp", "cmd_hp", ADMIN_SLAY, "<target> ")
}
 
public cmd_hp(id, level, cid)
{
    return PLUGIN_HANDLED



Sorry im very new at this but im just trying to get some basic knowledge of things before I try and do actual scripting so please bare with me. Also if anyone has any good tutorials they would like to share that really helped them I would be very happy to read over them so I dont have to bug everyone all the time about scripting while I learn....:)


All times are GMT -4. The time now is 05:33.

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