PHP & PAWNO
#1

Hi guys !!

i want to learn PHP , and learn to create a RolePlay server
Can i work on pawno with PHP ?
Reply
#2

You mean you want to learn Pawno from PHP or what? however to code pawno you need Pawn Compiler.
Reply
#3

PHP and samp are two completely different things. Okay, both are kind of script languages, but PHP runs on your webserver, pawn runs on the samp server.
PHP doesnt need to be compiled, so any editor will work fine for it. You might prefer one with syntax highlighting though, like notepad++. Pawno would also work, but I dont see any reason why you would want to use pawno for php.
Reply
#4

//EDIT: well it's kinda old now... don't know if 0.3z is supported :/

Quote:
Originally Posted by Need4samp
Посмотреть сообщение
Can i work on pawno with PHP ?
you can create a whole gamemode in php
click here to see how it's done

something like this
pawn Код:
public OnPlayerConnect(playerid)
{
    //Get the name of the player that connected and display a join message to other players

    new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
    GetPlayerName(playerid, name, sizeof(name));

    format(string, sizeof(string), "%s has joined the server.", name);
    SendClientMessageToAll(0xC4C4C4FF, string);

    return 1;
}
could become this
PHP код:
Event::on('PlayerConnect', function($player)
{
    
SendClientMessageToAll(0xC4C4C4FF$player->getName()." has joined the server.");
}); 
Reply
#5

Yes , with PHP SDK You can make GM/FS with PHP
Reply
#6

It can be made via PHP but it would take too long and you may get really confused on how to do the coding,various PHP Libraries and plugins are required thus complicating stuff. Stick with PAWN,it's a lot easier and you get quick support in the community for it (:
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)