10.07.2009, 16:59
Hello.
I've just received interest on scripting, searched for tutorials, guides, sampwiki and so on. I did understand things except for some.
I tried connecting on the IRC - but failed, and had several problems.
I've been reading the page named "Creating A Simple Administration FilterScript", reaching "Registration".
From the beginning of the page, after "solving" the first compile problems, I kept on receiving a warning that wouldn't go off.
admin.pwn(120) : warning 203: symbol is never used: "ret_memcpy".
Also, at the Register part, I couldn't understand several things:
The link dutils.inc doesn't work, but I can see that it's a download link.
How can we find it there?
And what exactly is num_hash?
Thanks for your help.
I've just received interest on scripting, searched for tutorials, guides, sampwiki and so on. I did understand things except for some.
I tried connecting on the IRC - but failed, and had several problems.
I've been reading the page named "Creating A Simple Administration FilterScript", reaching "Registration".
From the beginning of the page, after "solving" the first compile problems, I kept on receiving a warning that wouldn't go off.
admin.pwn(120) : warning 203: symbol is never used: "ret_memcpy".
Also, at the Register part, I couldn't understand several things:
Quote:
* We create a new variable (integer) called 'password' and assign it to the 'num_hash()' function we can find in our dutils.inc file. * We set the 'PLAYER_PASS' cell of our 'gPlayerInfo[playerid]' array to 'password'. The 'num_hash()' function simply converts the given string (in this case, our password), to a numerival value, with which we then place in to our array cell. * We set the 'PLAYER_REGGED' cell of our 'gPlayerInfo[playerid]' array to 1. This is so that if he types '/register [password]' again, he will trigger this line: |
Quote:
assign it to the 'num_hash()' function we can find in our dutils.inc file. |
And what exactly is num_hash?
Thanks for your help.