A little help with my register/login system - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: A little help with my register/login system (
/showthread.php?tid=170344)
A little help with my register/login system -
Wennicke - 22.08.2010
Hello.
Well lately I have been working on a register login using this tutorial:
https://sampwiki.blast.hk/wiki/Creating_...n_FilterScript . Well, I have tried to change the dcmd to cmdtext instead of as I know the cmdtext much better. Well, it all compiles fine and such, but when I come in game it doesn't work. Well, when I only type /register it's fine and gives me the "Command: /register [password]" which is fine. But when I type in the pass I want to use it says "Unkown Command". I have been checking it a couple of times by changing the tmp's and such, which doesn't work.
Here's the script:
http://pastebin.com/fVqtgKaQ
Re: A little help with my register/login system -
Vince - 22.08.2010
Quote:
Originally Posted by Wennicke
I have tried to change the dcmd to cmdtext instead of as I know the cmdtext much better.
|
Who gave you that? Cmdtext/strtok is stone-age scripting.
Re: A little help with my register/login system -
Wennicke - 22.08.2010
Quote:
Originally Posted by Vince
Who gave you that? Cmdtext/strtok is stone-age scripting.
|
For me, it's easier, and if it was. Then I guess they would've changed cmdtext to dcmd at the new 0.3b
Re: A little help with my register/login system -
Scenario - 22.08.2010
You've got your facts wrong.
1. ZCMD
2. DCMD
3. STRCMP/CMDTEXT
If you'd like a better tutorial, I suggest you find one in
this board. Many tutorials on the SA-MP Wiki are either outdated, or don't work. However, its still a good reference for functions and what not.
Re: A little help with my register/login system -
Wennicke - 22.08.2010
Quote:
Originally Posted by RealCop228
You've got your facts wrong.
1. ZCMD
2. DCMD
3. STRCMP/CMDTEXT
If you'd like a better tutorial, I suggest you find one in this board. Many tutorials on the SA-MP Wiki are either outdated, or don't work. However, its still a good reference for functions and what not.
|
The problem by reading all the tutorials on the forums, makes me copy paste and not really read them. It doesn't make me understand as much when I get them here. I understand a lot more when I read them on wiki.sa-mp.com