PHP scripting support for SAMP
#20

Quote:
Originally Posted by Steven82
View Post
How will you be a pro?

From my understanding you're still using SA-MP syntax. Just because you're good at PHP doesn't mean you're going to be able to make the next GamerX server with PHP now.
No, you're using the PHP syntax with this. You do all the data processing like you normally would in PHP, then you call SA-MP functions providing that data. That said, you still have to know what each SA-MP functions do, what they return, and so forth.

For example, you could do ..

Code:
define('COLOR_BLUE', 0x0000FFAA);
$string = "Hello:this:is:jack";
$string = explode(':', $string)

SendClientMessage($playerid, COLOR_BLUE, " $string[3]);
That would display "jack". explode() does not exist in PAWN, you can have something similar to this in PAWN but you would have to use sscanf or a premade split function.

You're simply calling SA-MP functions using PHP code syntax and semantics.
Reply


Messages In This Thread
PHP scripting support for SAMP - by rfksna - 03.07.2012, 13:38
Re: PHP scripting support for SAMP - by Niko_boy - 03.07.2012, 14:20
Re: PHP scripting support for SAMP - by rfksna - 03.07.2012, 14:21
Re: PHP scripting support for SAMP - by Roperr - 03.07.2012, 15:12
Respuesta: Re: PHP scripting support for SAMP - by [DOG]irinel1996 - 03.07.2012, 15:43
Re: PHP scripting support for SAMP - by rfksna - 03.07.2012, 15:45
Re: PHP scripting support for SAMP - by next-studio|TheKiller - 03.07.2012, 16:17
Re: PHP scripting support for SAMP - by next-studio|TheKiller - 05.07.2012, 18:19
Re: PHP scripting support for SAMP - by CoaPsyFactor - 06.07.2012, 05:31
Re: PHP scripting support for SAMP - by rfksna - 08.07.2012, 22:19
Re: PHP scripting support for SAMP - by Rg-Gaming.Info - 08.07.2012, 22:26
Re: PHP scripting support for SAMP - by rfksna - 08.07.2012, 22:33
Re: PHP scripting support for SAMP - by next-studio|TheKiller - 08.07.2012, 22:50
Re: PHP scripting support for SAMP - by rfksna - 08.07.2012, 22:54
Re : PHP scripting support for SAMP - by Eony - 13.08.2012, 09:03
Re: PHP scripting support for SAMP - by wups - 13.08.2012, 16:16
Re : Re: PHP scripting support for SAMP - by scott1 - 13.08.2012, 17:37
Re : Re: PHP scripting support for SAMP - by Eony - 14.08.2012, 15:12
Re: PHP scripting support for SAMP - by Steven82 - 14.08.2012, 15:16
Re : Re: PHP scripting support for SAMP - by Eony - 14.08.2012, 15:58
Re : PHP scripting support for SAMP - by scott1 - 14.08.2012, 18:19
Re: Re : PHP scripting support for SAMP - by wups - 16.08.2012, 14:31
AW: PHP scripting support for SAMP - by d34d - 20.08.2012, 08:46
Re: PHP scripting support for SAMP - by Jovazxc - 07.05.2013, 23:53

Forum Jump:


Users browsing this thread: 4 Guest(s)