SA-MP Forums Archive
[README] Convert your gamemode from 0.3b to 0.3c! - 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: [README] Convert your gamemode from 0.3b to 0.3c! (/showthread.php?tid=203750)



[README] Convert your gamemode from 0.3b to 0.3c! - DVDK - 27.12.2010

Introduction

As you've seen, a new version of SA:MP has been released, in 0.3c they've added a lot of new fuctions, but they've also changed some existing functions,
because of the changed arrays you cannot use your 0.3b gamemode on a 0.3c server without successfully re-compiling your script(s).


Let's Begin

Step 1: Download the latest server files, extract them into your server map, make sure you replace these files:

(Windows)
Код:
/samp-server.exe
/samp-npc.exe
/announce.exe
/pawno/include/a_samp.inc
/pawno/include/a_players.inc
/pawno/include/a_objects.inc
/pawno/include/a_vehicles.inc
Step 2: Re-compile you gamemode and filterscript(s) with the latest includes!
Step 3: Stop your server, upload the new files, and start your server.
(Warning: Restarting or GMX will not work!)

You're done!


Errors/Warnings

When you encounter any errors which weren't there before, make sure you've checked everything:

AttachPlayerObjectToPlayer
This function has been deleted in 0.3c, you can use an alternative function called SetPlayerAttachedObject.


Updates

Whats has been changed in 0.3c?

Quote:

* New objects.
* Colour embedding.
* Drive-by with all weapons.
* In dialogs leaving button 2 blank will make it disappear.

Added Functions;
* AttachObjectToVehicle
* ManualVehicleEngineAndLights
* SetVehicleParamsEx
* SetVehicleNumberplate
* SetPlayerAttachedObject
* RemovePlayerAttachedObject
* IsPlayerAttachedObjectSlotUsed

Changed Functions;
* SetPlayerMapIcon

Deleted Functions;
* AttachPlayerObjectToPlayer
_________________________________________________

Any further problems/questions? please post them here i'd love to help!


Re: [README] Convert your gamemode from 0.3b to 0.3c! - gondes - 28.12.2010

i have problem: Script[gamemodes/larp.amx]:run time error 19:''file or function is not found''


Re: [README] Convert your gamemode from 0.3b to 0.3c! - DVDK - 28.12.2010

Quote:
Originally Posted by gondes
Посмотреть сообщение
i have problem: Script[gamemodes/larp.amx]:run time error 19:''file or function is not found''
That's not a 0.3c problem, but anyways this is mostly because of failed plugins.


Re: [README] Convert your gamemode from 0.3b to 0.3c! - gondes - 28.12.2010

How to repair this problem?


Re: [README] Convert your gamemode from 0.3b to 0.3c! - Lorenc_ - 29.12.2010

you've ran something thats editing ur includes, or you might of loaded a plugin which isnt in the plugins folder or is damaged, nice mini tut btw :P


Re: [README] Convert your gamemode from 0.3b to 0.3c! - tony_fitto - 29.12.2010

I have a huge problem as well, Nothing seems to work on my server and I have everything as before, And everything worked fine in 0.3c RC4


Re: [README] Convert your gamemode from 0.3b to 0.3c! - Chivava - 29.12.2010

Very helpfull, and thanks


Re: [README] Convert your gamemode from 0.3b to 0.3c! - HyperZ - 29.12.2010

Good job.


Re: [README] Convert your gamemode from 0.3b to 0.3c! - bomm89 - 30.12.2010

i have the same problem and cant find a solution can someone plz help me


Re: [README] Convert your gamemode from 0.3b to 0.3c! - DVDK - 30.12.2010

Quote:
Originally Posted by bomm89
Посмотреть сообщение
i have the same problem and cant find a solution can someone plz help me
Seems like a lot of people have this problem, i think it's a plugin problem, remove all your plugins and try again.