SA-MP Gamemodes with PHP
#61

Quote:
Originally Posted by QuaTTrO
Посмотреть сообщение
The SA:MP 0.3z RC has been released. Is there a chance that you will update this plugin to a final version of a SA-MP 0.3z?
You may download the source code and upgrade it, since lapayo isn't active for already 6 months.

I could upgrade it for samp 0.3z RC, but i'm lazy to do such thing.

Quote:
Originally Posted by Rsmiley
Посмотреть сообщение
lapayo, do you have plans to update this to the latest version once it's out of RC?
See the answer to my last question.

Quote:
Originally Posted by _SysTeM_OFF
Посмотреть сообщение
Amazing..

itґs fast?
Lapayo posted a benchmark in the page 4 or 5[not sure], and the test he realized, it is way faster than pawn.
Reply
#62

Quote:
Originally Posted by [WA]iRonan
Посмотреть сообщение
I tried to make something difference like this, although it's HTML. I didn't really succeed but is anyone actually interrested in this? I will give it a try then.

Код HTML:
<ongamemodeinit>
    <print>Print("text");</print>
    <settimer>
         <time>5000</time>
         <repeat>true</repeat
    </settimer>
</ongamemodeinit>

<onplayerconnect>
    <SendClientMessage>
        <target>playerid</target>
        <color>COLOR_WHITE</color>
        <text>You have joined.</text>
    </SendClientMessage>
</onplayerconnect>
That would be XML, not really html. For some applications XML has some nice advantages, but for PAWN scripting? Not really. This would just be a wrapper for pawn code, I guess you planned to parse this to the normal format. Its much harder to read and results in gigantic files. The only advantage would be that xml is easier to analyze for stuff like source code stats.
Nice idea, but better try something different.
Reply
#63

Quote:
Originally Posted by Kikito
Посмотреть сообщение
You may download the source code and upgrade it, since lapayo isn't active for already 6 months.
I'm not skilled in C++ so i can't do this.
Reply
#64

Quote:
Originally Posted by QuaTTrO
Посмотреть сообщение
I'm not skilled in C++ so i can't do this.
When sa-mp 0.3z is officially released, and lapayo doesn't upgrade the plugin, then i will upgrade it myself.
However, Lapayo needs to allow me to do such thing.

@Edit: I am currently working on the plugin.
It has been updated for php 5.5.9.
Currently adding the samp 0.3z functions.
Reply
#65

Quote:
Originally Posted by Kikito
Посмотреть сообщение
When sa-mp 0.3z is officially released, and lapayo doesn't upgrade the plugin, then i will upgrade it myself.
However, Lapayo needs to allow me to do such thing.

@Edit: I am currently working on the plugin.
It has been updated for php 5.5.9.
Currently adding the samp 0.3z functions.
Thank you for continuing development on it. Do let us know when you've finished your upgrade
Reply
#66

This is Fucking Awesome
Reply
#67

Please can somebody help me with that SIGSEGV error?
Reply
#68

Instalation shell script not working, but on Debian you can install all required files using apt-get.

Код:
apt-get install php5-cgi php5-cli
apt-get install libphp5-embed
cp /usr/lib/php5/libphp5.so /usr/lib
Reply
#69

Nice idea thanks for plugin man
Reply
#70

I am getting this when I try to run the server (windows version). Which php version php_pdo_mysql.dll do I need and where to get it?

Is it Kikito's 5.5.9 last update version or something else?

Код:
Warning: dl(): pdo_mysql: Unable to initialize module
Module compiled with module API=20121212
PHP    compiled with module API=20100525
These options need to match
If that is not the way to solve it (download the 5.5.9 version of the dll), then how to solve it?
Do I have to recompile the source in visual studio somehow?

thanks

EDIT: tips on how to compile with VS2010 express?
EDIT2: you can only download php 5.5.10 from their site :P
EDIT3: got 'php_pdo_mysql.dll' file from php 5.4.26 and the server gives me this error now:

Код:
Warning: dl(): pdo_mysql: Unable to initialize module
Module compiled with build ID=API20100525,TS,VC9
PHP    compiled with build ID=API20100525,NTS,VC9
These options need to match
 in D:\Games\SAMP PHP server\...\gamemode.php on line 26
errr ... its a thread safe/non thread safe issue :P

EDIT4: yep, that and php5.dll from the same package solved it. Now, let's see if I can make something out of it
Reply
#71

Quote:
Originally Posted by [ESC]Walter_Wolf
Посмотреть сообщение
I am getting this when I try to run the server (windows version). Which php version php_pdo_mysql.dll do I need and where to get it?

Is it Kikito's 5.5.9 last update version or something else?

Код:
Warning: dl(): pdo_mysql: Unable to initialize module
Module compiled with module API=20121212
PHP    compiled with module API=20100525
These options need to match
If that is not the way to solve it (download the 5.5.9 version of the dll), then how to solve it?
Do I have to recompile the source in visual studio somehow?

thanks

EDIT: tips on how to compile with VS2010 express?
EDIT2: you can only download php 5.5.10 from their site :P
EDIT3: got 'php_pdo_mysql.dll' file from php 5.4.26 and the server gives me this error now:

Код:
Warning: dl(): pdo_mysql: Unable to initialize module
Module compiled with build ID=API20100525,TS,VC9
PHP    compiled with build ID=API20100525,NTS,VC9
These options need to match
 in D:\Games\SAMP PHP server\...\gamemode.php on line 26
errr ... its a thread safe/non thread safe issue :P

EDIT4: yep, that and php5.dll from the same package solved it. Now, let's see if I can make something out of it
I haven't fully updated this plugin since I haven't got the answer of lapayo.
[So yes, the download version is still lapayo version]

In the best of the cases, I will need to create the PHP plugin, since lapayo is away for already a long time.
Reply
#72

If you have time (and skills ), that would be awesome
Reply
#73

This remind me of AS3 Code emulators anyways I still wonder how is it possible
Reply
#74

Quote:
Originally Posted by IceShock
Посмотреть сообщение
This remind me of AS3 Code emulators anyways I still wonder how is it possible
Possible what? Having PHP in sa-mp?

We use the SAMPGDK, and the PHP source code.
Then, we just mix both together[and make them work, of course], create a dynamic link library with it, and *inject*[not the right term, since the server loads it] into the server executable.


Quote:
Originally Posted by [ESC]Walter_Wolf
Посмотреть сообщение
If you have time (and skills ), that would be awesome
I have some skills, however I'm not a pro
Time... that's something which I can get if I do modify my work load.
Reply
#75

Would love to see a version that works with 0.3z.
Reply
#76

Really nice plugin... But outdated.
Reply
#77

Will anyone use this if I update?
Reply
#78

Yes, I've already started developing GM, but now it's not working with 0.3z
Reply
#79

I installed gdk, sdk and php and cmake detected plugin-sdk while gdk installing but when i try to compile samphp it says amx/amx.h and sampgdk/amx.h not found, can anyone help on compiling this?

other then, i finished adapting it to 0.3z
Reply
#80

Quote:
Originally Posted by erorcun
Посмотреть сообщение
I installed gdk, sdk and php and cmake detected plugin-sdk while gdk installing but when i try to compile samphp it says amx/amx.h and sampgdk/amx.h not found, can anyone help on compiling this?

other then, i finished adapting it to 0.3z
Had you built the latest SAMPGDK release?
Updated the plugin source code for the new API and stuff?

If you just edited the functions, and added the new ones in the PHP side, it ain't going to do nothing.

I haven't updated this plugin yet because I don't have almost time for myself, and it's quite a large amount of work.
So in my free time, instead being developing stuff, i prefer to spend time with my family.

About the "amx/amx.h"
that's related to the plugin development sdk.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)