Scripting Help FAQ
#2

Q: Where can I learn how to script?
A: There is already a beginner's introduction posted here. IMO, if you are new to the programming and have never seen nor written a piece of code, read this http://compuphase.com/pawn/Pawn_Getting_Started.pdf.
Topic: https://sampforum.blast.hk/showthread.php?tid=157611

Q: Help, warnings and errors!
A: https://sampforum.blast.hk/showthread.php?tid=274028.
Topic: https://sampforum.blast.hk/showthread.php?tid=338070&page=3

Q: What is the best command processor?
A: To clarify, a good command processor is one which offers speed and functionality. YCMD, ZCMD and rCMD are examples of up-to-date command processors.
Topic: https://sampforum.blast.hk/showthread.php?tid=312062

Q: Run time error 19: File or function not found!
A: This is a server error. It occurs upon server execution (hence a run time error) and when the server can't retrieve information from a plugin. A simple fix would be to make sure your plugins are in the correct directory (/plugins) and to also make sure it is added to server.cfg.
Topic: https://sampforum.blast.hk/showthread.php?tid=355115

Q: Problem with sscanf!
A: There is extensive documentation written about sscanf. If you have any issues, post in the topic section here.
Topic: https://sampforum.blast.hk/showthread.php?tid=339609

Q: MySQL vs SQLite
A: There has been countless threads on this; 1, 2, 3. Also, please take your time to read through the threads, as one's person's opinion isn't necessarily fact.
Topic: No original topic needed.

Q: Difference between Stock and Public functions.
A:
Quote:
Originally Posted by Y_Less
To clarify:

"stock" defines that a function may not be used, and if it isn't don't give a warning at compile time. This is used for library functions, you don't need it for writing normal modes.

"public" saves the name of the function in the amx (normally functions are just called be address, the human-readable name is not important). Saving the name means that the function can be found by name later on. When you specify a function in "SetTimer", "SetTimerEx", "CallLocalFunction" or "CallRemoteFunction" you specify it by name so these can only call public functions. Callbacks such as "OnPlayerConnect" are also public for the same reason.
Topic: https://sampforum.blast.hk/showthread.php?tid=171962

Q: Isn't foreach the same as a for loop!? (for loop vs foreach)
A:
Quote:
Originally Posted by Gh05t_
Foreach uses a method known as Linked Lists. Instead of each index validating a check of whether the player is connected or not, it stores the id of the next connected player. A separate variable stores the id of the first connected player, therefore, you may use the current index, to retrieve the next index and ONLY loop through connected players until it has been fulfilled (index of -1).
Topic: https://sampforum.blast.hk/showthread.php?tid=169782

Q: How to make a Register/Login script.
A: There are dozens of threads on the matter; 1, 2, 3, 4, 5.
Topic: https://sampforum.blast.hk/showthread.php?tid=278316

Q: Need help with a command!
A: If you need help with a command, post it here.
Topic: https://sampforum.blast.hk/showthread.php?tid=347955
Reply


Messages In This Thread
Scripting Help FAQ - by Y_Less - 29.06.2012, 14:21
Re: Scripting Help FAQ - by Disturn - 29.06.2012, 14:32
Re: Scripting Help FAQ - by MadeMan - 29.06.2012, 16:17
Re: Scripting Help FAQ - by [KHK]Khalid - 29.06.2012, 18:49
Re: Scripting Help FAQ - by ReneG - 29.06.2012, 23:55
Re: Scripting Help FAQ - by Vince - 30.06.2012, 11:44

Forum Jump:


Users browsing this thread: 1 Guest(s)