READ Before You Post! 0.3 Information.
#1

Information for SA-MP 0.3

Bugs
SA-MP 0.3 has been RELEASED! Link at the bottom of Page.
Please SEARCH first, see if it has been answered before.

Is it your script? Check that you have no errors in your script. Maybe you did something wrong.

If not, Think about how big of a bug it is. If its only small do you really need to make a thread about it?
No you dont. Please use this thread to report confirmed bugs from 0.3a RC9 onwards HERE.

/save Command, What happend to it?
The /save command is the Exact same nothing has happend to it besides The Message that comes up is now gone.

Suggestions
Quote:

I know there are lots of good suggestions being posted but please keep them for the next version and do not post them in this section of the forum.

This quote from Kye is self explanitory.

Quote:
Major changes needed to 0.2X scripts:
- Vehicle locking can only be applied to streamed-in vehicles. Please see the bottom of rivershell.pwn if your script uses SetVehicleParamsForPlayer.
- CreatePickup has a new virtual world default parameter. This won't require any changes to your script, although you will at least need to recompile with the 0.3 includes.
- SetDisabledWeapons is removed.
- The client commands /pm /tpm and the server callbacks OnPlayerPrivMsg and OnPlayerTeamPrivMsg are removed. If you need a replacement /pm command please see the base.pwn filterscript.
- Multi-car trains can only be created with AddStaticVehicle/Ex. Do not use CreateVehicle.
- The new limits of 0.3 can be found on this page: https://sampwiki.blast.hk/wiki/Limits
- New pawn scripting natives added in 0.3 can be found here: https://sampwiki.blast.hk/wiki/Category:Added_in_0.3
- Although the vehicle model limit in 0.3 is unlimited, if you use a large amount of vehicle models, you may notice parts of your mode become framey as vehicle models are dynamically loaded/unloaded. Keeping the number of vehicle models below 150 is a good idea.

Notes:

- SetVehicleNumberplate does not work. This function can't work due to SA's internal coding which only assigns 1 numplate per vehicle model. The function itself will be left in for future use if it can be made to work.
- Bug report: PutPlayerinVehicle will crash your Client if the Vehicle is not streamed in. [I can't replicate this crash. /player2v (playerid) (vehicleid) in npc_record fs works as expected].
- Bug report: Paintjobs based on invalid texture IDs won't work anymore. [That's right. Invalid IDs may have worked but could also induce crashes. Invalid paintjob IDs are blocked.]
- Bug report: Long TextDraws will crash the client. [This problem isn't well understood yet. In the npc_record fs /longtd command I create a 670 character textdraw which does not crash. Ones that do crash are either exceeding some formating code limit or have dimensions wrong for their text.]
- Bug report: Car mods aren't applied after vehicle is created. [No problems here. I tried the exact script given and it functions as expected. Regression function is in npc_record under /carmodtest
- 3D Text has an LOS parameter for line-of-sight checking
- CreatePickup will take -1 vworld param for all vworlds
- If dialogid is less than 0 (ie -1) any open dialog will be closed.
- Dialog info limit is now 4096 characters.
- announce will now use the 'bind' address for announcing on linux.
- Added /pagesize client command to set the number of chat lines displayed (10-20 lines default: 10).
- If a server creates vehicles dynamically (CreateVehicle) the vehicle model loading wasn't optimised, which lead to small "lags/freezes" while vehicle models were being loaded/unloaded.
- If the player's clock is enabled, weather ID changes will interpolate rather than instantly changing.
- The server crash_log on Windows will display the stack information.
- Weapon skills reset to 999 after a gamemode restart.

Scripting Information

Current Client: 0.3a
Current Server: 0.3a
Development: SA-MP 0.3b

If you would like to know about the new 0.3 Scripting features please visit https://sampwiki.blast.hk/wiki/Category:Added_in_0.3 also please take note of the new 0.3 Limits https://sampwiki.blast.hk/wiki/Limits

Dialogs currently have a Minimum of 2 selection boxes No Less. You cannot script GUI's dont ask.
Quote:

Key:
Right
Wrong

Dialog Box
In graphical user interfaces, a dialog (or dialogue) box is a special window, used in user interfaces to display information to the user, or to get a response if needed. They are so-called because they form a dialog between the computer and the user—either informing the user of something, or requesting input from the user, or both. It provides controls that allow you to specify how to carry out an action.

GUI
A GUI offers graphical icons, and visual indicators, as opposed to text-based interfaces, typed command labels or text navigation to fully represent the information and actions available to a user. The actions are usually performed through direct manipulation of the graphical elements.

What do the new things in the Server.cfg mean?
This is a basic Explanation of what they are, If you want a detailed look on what they do please visit THIS Thread.
Код:
  * onfoot_rate - The minimum time in milliseconds a client updates the server with new data while running/walking.
  * incar_rate - The minimum time in milliseconds a client updates the server with new data while in a vehicle.
  * weapon_rate - The minimum time in milliseconds a client updates the server with new data while firing a weapon.
  * stream_distance - The distance on the X,Y plane which server entities will stream in for connected players.
  * stream_rate - The number of milliseconds that must elapse before server entities stream distance is retested for each player. 
  * maxnpc - The number of NPC's allowed to connect to your server (MAX 500)
0.2X scripts need to be Compiled with the new 0.3 Includes or they wont work.
SendChat(); and SendCommand(); Can only be used in npcmodes so dont try to add to your GM/FS! When using trains, CreateVehicle may not work, use AddStaticVehicle(Ex).

The Area 51 block objects are removed (the jet pack roof vent, and the little vent to the side of the entrance), to replace them as they where before, use;
Код:
	CreateObject(3095,268.94,1884.14,16.06,0.00,0.00,0.00); // JetPack room block
	CreateObject(3117,245.952,1862.810,19.49,0.0,0.0,-140.998); // Vent Block
Server Lag really bad sometimes? Or does it lag when you chat?
Quote:

is to do with the script that server is running. I've already spoken with the server owners. They create most vehicles with CreateVehicle so the models aren't preloaded. That means the first time a car streams in there will be a small lag while the model is loaded. But after it's loaded it won't lag anymore. So after about 5-10 mins of playing you'll notice the lags go away.


NPC's


Alot of people are excited about 0.3's NPC's and want to script them for their server. But How?
If you would like to learn how to Script your own NPC('s) there is only 1 thread to go to and that is HERE

- Do you have problems with connecting your NPC('s)?
Please check that you have done these,
Make sure the .rec files are in /npcmodes/recordings/, Make sure all filterscripts are in the filterscript folder, Make sure all npcmodes are in the npcmodes folder, Make sure there is no registration before spawning script, Make sure you have the right client/server.

Quote:

If your script is forcing the NPC to login, or you have an anti-cheat / ping kicker that is interfering with your NPC. You can add...
pawn Код:
OnPlayerConnect(playerid)
{
    if(IsPlayerNPC(playerid)) return 1;
    //Other Stuff
}
... as the first line of any callbacks that bots will use, e.g. OnPlayerRequestClass or OnPlayerRequestSpawn. For an efficient, simple way of excluding NPCs from loops, check out foreach by ******.

- samp-npc.exe
You do not need to start samp-npc as it will auto start when you start samp-server.exe

There is no need to create new threads because you cant connect your NPC's, I had used kc's Tutorial when i made my first NPC and it worked perfectly fine. All i did was follow the tutorial, and thats all you need to do!
Please note you cannot include a_samp with a_npc.
For a List and Documentation of all NPC Functions and Callbacks please visit https://sampwiki.blast.hk/wiki/Category:NPC

NPC's Cannot be killed, Walking or in a Vehicle it is impossilbe to kill them.
You can however kill them in your script.

0.3 Final Release
Quote:

SA-MP 0.3a is released! As usual, the new update is available on the Download Page.

This is the first major SA-MP update since SA-MP 0.2 and there are more features and fixes than can be listed on this page.

Here is a short summary of some of the new features in SA-MP 0.3a:

- Up to 500 players per server and up to 2000 vehicles.
- New mouse driven scoreboard, chat and other UIs.
- Visible vehicle damage and vehicle repairing.
- NPC bots that can drive trains, planes and more.
- Completely server controlled game play.
- Improved sync including vehicle surfing.
- Many new scripting features.
- Many bug and crash fixes - SA-MP 0.3a is the most stable version yet!

Reply
#2

Nice work

But under bugs
Quote:

Please use this thread to report confirmed bugs from 0.3a RC7 onwards HERE.

RC8?
Reply
#3

Quote:
Originally Posted by FUNExtreme
But under bugs
Quote:

Please use this thread to report confirmed bugs from 0.3a RC7 onwards HERE.

RC8?
He said onwards...meaning anything after RC7.
Reply
#4

Quote:
Originally Posted by Burridge
Quote:
Originally Posted by FUNExtreme
But under bugs
Quote:

Please use this thread to report confirmed bugs from 0.3a RC7 onwards HERE.

RC8?
He said onwards...meaning anything after RC7.
Then it should be RC6 ...
Reply
#5

Why RC6?
Reply
#6

Bug report title says RC6-RC8

So why RC7?
Reply
#7

Well its quoted from Kye, ask him lol.

Oh this thread got stickied
Reply
#8

What this:
Quote:

timestamp = 1 (bool)
nosign = "" (string) (read-only)
myriad = 0 (bool)
sleep = 5 (int)


Thanks for the answer.
Reply
#9

Is there a way to show only ONE button in a Dialog?
Reply
#10

Quote:
Originally Posted by Abhishek
Is there a way to show only ONE button in a Dialog?
Not yet.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)