View Single Post
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 08-09-2008 , 17:19   Re: New to scripting? This will get you started.
Reply With Quote #2

Some minor corrections
Quote:
Originally Posted by PvtSmithFSSF View Post
Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
cstrike and amxmisc isnt used in your script.
wouldnt hurt telling them that they give acces to other powerfull commands/nativs
Quote:
Originally Posted by PvtSmithFSSF View Post
// These {'s and }'s are needed whenever you have code. They need to surround all the code.
You should explain that they are only needed when your doing more then one thing.
Quote:
Originally Posted by PvtSmithFSSF View Post
// Register_clcmd is saying 'When a user types 'something' , then 'something' happens.
register_clcmd is when a user ho's runing cs types something in his console
register_concmd is when someone types something in server or clients console
register_srvcmd is when something is typed in the servers console
Quote:
Originally Posted by PvtSmithFSSF View Post
// So whenever we have 'money' written in this section of the plugin,
// it will get a player's money.
new money = cs_get_user_money(id)
it stores the value in the integer not get it every time.
Quote:
Originally Posted by PvtSmithFSSF View Post
// The reason we put it here and not with the others at the beginning of the plugin
// is because this line contains (id) in it, and that must be there.
// You cannot put (id) where the others are, unfortunately. So we put it here
// where we need it.
just tell them that they can only use the integer id in the function where it was created.

other stuff*

you should tell them that the thing you calld phrases are integers and explain what they do and what they store in this plugin.
you should explain that id is storing the first parameter in the function and it contains the players number ho triggerd it in your cases.

Exept those stuff it was nice keep it up and sry about my spelling.
__________________
If one of my plugins become broken, contact me by mail. [email protected]

Last edited by fxfighter; 08-09-2008 at 17:30.
fxfighter is offline
Send a message via MSN to fxfighter