SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 18/11/2014, 11:33 AM   #191
GWMPT
Gangsta
 
Join Date: Nov 2012
Location: Portugal.
Posts: 987
Reputation: 287
Default Re: SA-MP Gamemodes with PHP

SAMPHP is using the php.dll which you can find in the sa-mp server folder.
That file is basically the PHP standalone, which allows to execute the plugin, even if you don't have the PHP installed.

I will try to release another pre-release this afternoon, with mysql + pdo, and a few more bug repairs.

@Edit, you're using the samphp found in the first page, right?
If so, I think it's time to move on... https://github.com/Lapayo/SAMPHP/releases
Download the SAMPHP_WINDOWS and having fun with it.
GWMPT is offline   Reply With Quote
Old 18/11/2014, 12:14 PM   #192
Enchancer
Little Clucker
 
Join Date: Nov 2010
Posts: 15
Reputation: 0
Default Re : Re: SA-MP Gamemodes with PHP

No I'm using this one:
Quote:
Originally Posted by Kikito View Post
You can download the windows version* over our GitHub page.
Thank you for your explanation, I understand better now.
But I still don't understand why phpversion () output 5.4.15 if your php5.dll is used instead of my php server.
So in reality, our extensions mysqli or PDO (or others) must match your php5.dll? In this case, it could be wise for including it in the package to avoid this kind of problem (or to avoid having to read all the pages of the topic, I do not speak English very well as you can see ^^)

Edit:
Quote:
Originally Posted by Kikito View Post
@Edit, you're using the samphp found in the first page, right?
Oh right, I think you're right. I probably mixed the two archives! I'm sorry for making you waste your time.
A terrible mistake. I'm a little tired :/

Last edited by Enchancer; 18/11/2014 at 12:59 PM.
Enchancer is offline   Reply With Quote
Old 18/11/2014, 12:58 PM   #193
GWMPT
Gangsta
 
Join Date: Nov 2012
Location: Portugal.
Posts: 987
Reputation: 287
Default Re: SA-MP Gamemodes with PHP

Well, about the PHP version, Could you download it once again and replace the php5.dll, sampgdk4.dll and the plugin folder?

I've downloaded now the pre-release(just to make sure), and the php version installed is 5.6.2.
GWMPT is offline   Reply With Quote
Old 18/11/2014, 01:00 PM   #194
Enchancer
Little Clucker
 
Join Date: Nov 2010
Posts: 15
Reputation: 0
Default Re : SA-MP Gamemodes with PHP

I just edit my post :/
Edit: MSVCP120.dll is missing (Microsoft visual c++ 2012 redistributable probably)
Microsoft visual c++ 2013* redistributable x86

Last edited by Enchancer; 18/11/2014 at 01:33 PM.
Enchancer is offline   Reply With Quote
Old 18/11/2014, 01:18 PM   #195
GWMPT
Gangsta
 
Join Date: Nov 2012
Location: Portugal.
Posts: 987
Reputation: 287
Default Re: Re : SA-MP Gamemodes with PHP

Quote:
Originally Posted by Enchancer View Post
MSVCP120.dll is missing (Microsoft visual c++ 2012 redistributable probably)
Yep, you're right.
I had upgraded this project from vs 2010 for vs 2013, so you need to install the microsoft visual c++ 2012 redistributable to get it working.

___________
SAMPHP Plugin revision 2.0B is there!
You can download this version directly from our GitHub repository.
Changelog in this version:
Quote:
+ PHP Version updated for 5.6.3
+ Added MySQL and PDO support
+ Updated the extension path for <server folder>/php/ext, now you can run the extensions you want, without trouble finding the extension directory.
The production release is almost there, and it will be optional*, since the unique difference in that release will be AMX handlers.(Call, Register, etc.)

* Unless if critical bugs are found.


@Edit: the windows binaries released 2 - 3 days ago had a bug, which I had repaired now.
For the people who's using the version 2.0B, I would advice you to re-download the package, and just update the samphp.dll file.

The binaries for linux should be created in the following days, I'm currently having some issues with my computer HDD.

Last edited by GWMPT; 20/11/2014 at 11:50 PM.
GWMPT is offline   Reply With Quote
Old 23/11/2014, 11:58 AM   #196
Bubelbub
Little Clucker
 
Join Date: Dec 2010
Posts: 29
Reputation: 0
Default AW: SA-MP Gamemodes with PHP

https://github.com/Bubelbub/SAMPHP.git
Maybe someone has time to complete my changes...

I forked the official repository and added Erorcun's changes.
Then i tried to move the project from the "build-vs2008" to the CMake application. (Available for windows and linux)
It would be easier to compile it on linux/windows with that, i think.

The current state is that the cmake cmd works but compiling it on Windows failed with "Missing zend_config.h - No such file or directory".
Maybe we should add the php library instead the sources?

And for the bug with the libphp5.so we should use a static build.
I think thats better. Some machines have an older php version as default...



And after that i think we could integrate this streamer plugin.
Then the php gamemodes would be greater than the pawn gamemodes
https://github.com/samp-incognito/sa...mer-plugin.git
Bubelbub is offline   Reply With Quote
Old 23/11/2014, 12:18 PM   #197
GWMPT
Gangsta
 
Join Date: Nov 2012
Location: Portugal.
Posts: 987
Reputation: 287
Default Re: SA-MP Gamemodes with PHP

Hi there Bubelbub
The plugin is now released in a new thread, as well in a new repository.
Link for the new thread: http://forum.sa-mp.com/showthread.php?t=547469
Link for the new repository: https://github.com/crodriguespt/samphp

Follow the instructions found in the new thread related to compiling the plugin on windows.
Remember, you NEED to download the php source code and build it.
About the plugin for linux, I didn't changed anything there yet.
Quote:
And for the bug with the libphp5.so we should use a static build.
I think thats better. Some machines have an older php version as default...
could you send me a private message it more informations about that bug?

About the streamer plugin, the following releases will have full support to other plugins callbacks.

Once again, please, use the new thread for questions, bug reports and feedback, since I'm the current developer, and I can't edit the main post of this thread.
GWMPT is offline   Reply With Quote
Old 27/08/2015, 06:31 AM   #198
katumas
Little Clucker
 
Join Date: Aug 2015
Posts: 7
Reputation: 0
Default Re: SA-MP Gamemodes with PHP

Not working with windows xp sp3 32bit.
AND
Link for the new thread: http://forum.sa-mp.com/showthread.php?t=547469 NOT WORKING, it writes me i dont dont have permissions
katumas is offline   Reply With Quote
Old 27/08/2015, 07:53 AM   #199
!damo!spiderman
Huge Clucker
 
!damo!spiderman's Avatar
 
Join Date: Oct 2006
Posts: 244
Reputation: 160
Default Re: SA-MP Gamemodes with PHP

Quote:
Originally Posted by katumas View Post
Not working with windows xp sp3 32bit.
AND
Link for the new thread: http://forum.sa-mp.com/showthread.php?t=547469 NOT WORKING, it writes me i dont dont have permissions
This plugin hasn't been updated in almost a year and your operating system isn't even supported by Microsoft anymore
__________________
!damo!spiderman is offline   Reply With Quote
Old 27/08/2015, 09:03 PM   #200
GWMPT
Gangsta
 
Join Date: Nov 2012
Location: Portugal.
Posts: 987
Reputation: 287
Default Re: SA-MP Gamemodes with PHP

I had performed a update in the last days to the plugin after the donation I had received and the request I had to continue the development of it.

I will release an update for the plugin in a new thread(clean thread) as soon as I get the framework rewritten(I will offer 2 versions of the framework to be downloaded apart of the plugin itself, the plugin now will only consist in the plugin itself(dll's, and the basic PHP environment) and time to do so.

So you can expect it in mid September to be online, totally updated and bug free(or at least will try to do so)
GWMPT is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gamemodes for 0.3d ? Mr.Fames Scripting Help 16 08/12/2011 09:54 PM
beg for gamemodes gf sql vagosz Help Archive 3 29/12/2009 10:28 AM
I want a new gamemodes crime Help Archive 10 13/08/2009 10:49 PM


All times are GMT. The time now is 05:09 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.