PHP in pawno.
#1

Hi,

It's possible use php in pawno?

It's one thing, you call with given number, then you hear letters, and input in web input form, and then i get money... But i want to do this in game, you write the code in dialog input, and then you got a my privilegies..

Just when i write this code, then somehow go to php file, and there check input code, but how do it? maybe here is include or something?
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=435177
Reply
#3

Uh... considering the language is PAWN and not PHP, no. There is the HTTP function available, though.

Although, it's my understanding that you're trying to make money from your SA:MP server which isn't allowed as per the SA:MP server agreement.
Reply
#4

I saw http, but if i post inputtext, how in my php file in my web, check that posted information?
Reply
#5

Quote:

and then i get money...

I'm not going to help you break the SA:MP server agreement.
Reply
#6

If people, want give me money... They give if they want. Just simple code..
Reply
#7

Your English is extremely broken and I can't even understand the exact thing you want; I doubt many other people can, too! Go post in your language's section.
Reply
#8

$_POST["Text"];

I want, to send information to my php file. I want to send player inputtext and get that inputtext with Post methode. In php language you can do it:

Code:
<form action="welcome.php" method="post">
Name: <input type="text" name="fname">
Age: <input type="text" name="age">
<input type="submit">
</form>
Code:
Welcome <?php echo $_POST["fname"]; ?>!<br>
You are <?php echo $_POST["age"]; ?> years old.
But how i can POST player inputtext in my php file?
Reply
#9

There are types of response code available for HTTP - HTTP_POST or HTTP_GET_POST, which you can use. There are no good tutorials on HTTP available, so you have to apply some logic, do some trial and error-ring before you come to the right method. (HTTP on SA-MP, look here for an example)
Reply
#10

I ask how in php file i can get that information what i have been posted used http?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)