-
Posts
155 -
Joined
Everything posted by iwalidza
-
I want make a building system like a rust game how I can do that Like that :
-
how i can stop zombie spawn
-
good
-
all the ports is open and i dont use any java script in my code
-
i do it but nothing i dont have any errors https://mcpmtasa.000webhostapp.com/
-
plz and plz and plz i need that help
-
جميل !
-
https://image.prntscr.com/image/y0y8_b_LQ_uFMktrHWKlkA.png php sdk connect with the server but the informations not go to the site in local host https://image.prntscr.com/image/y0y8_b_LQ_uFMktrHWKlkA.png in public host https://image.prntscr.com/image/Dn7jxN_FSQC8eTxYkF8MdA.png the php file https://image.prntscr.com/image/gcrrRghJQsmEBGjfar-hWw.png
-
جميل
- 5 replies
-
- 1
-
-
- autohotkey
- اوتو
-
(and 4 more)
Tagged with:
-
$response = $mta->getResource('dev2')->call('getPlayersNumber', $arg1); echo $response; function getPlayersNumber () return #getElementsByType('player') end like that?
-
https://prnt.sc/s3panr oh oh sorry
-
https://prnt.sc/s3p7uw And where i can found more information about php sdk ?
-
but where? https://prnt.sc/s3p6te
-
yup i have https://prnt.sc/s3p4x8
-
the php file https://prnt.sc/s3p37w and autoload.php file exist in https://prnt.sc/s3p3mv
-
what i need to do now https://prnt.sc/s3p1xl error
-
its done see the img https://prnt.sc/s3p0ko
-
iam try to follow https://wiki.multitheftauto.com/wiki/PHP_SDK but i don't understand anything see that img https://prnt.sc/s3ot3t
-
iam try to get test string form Lua to php with php sdk thats my cods Lua function getAllPlayersForWebsite ( ) local players = {} for k, player in ipairs( getElementsByType ("player") ) do local name = getPlayerName( player ) table.insert( players, name ) end return players end function getPlayersNumber () return "test" end meta <meta> <script src="devS.Lua" type="server"/> <export function="getAllPlayersForWebsite" type="server" http="true" /> <export function="getPlayersNumber" type="server" http="true" /> </meta> php <?php include "sdk/mta_sdk.php"; $MY_SERVER = [ "host" => "localhost", "http_port" => 22005, "http_user" => "php", "http_pass" => "phpphp" ]; $SERVER = new mta ( $MY_SERVER['host'], $MY_SERVER['http_port'], $MY_SERVER['http_user'], $MY_SERVER['http_pass'] ); try { $RESOURCE = $SERVER->getResource ( "dev2" ); $RESULT[] = $RESOURCE->call ( "getAllPlayersForWebsite" ); foreach ( $RESULT [ 0 ] [ 0 ] as $index=>$playerName ) { print_r ( $playerName ); echo "<br /><br />"; } $RESULT[] = $RESOURCE->call ( "getPlayersNumber" ); foreach ( $RESULT [ 0 ] [ 0 ] as $index=>$sting ) { print_r ( $sting ); echo "<br /><br />"; } #Catch any errors that occurred } catch ( Exception $e ){ #Output error message echo "<strong>Oops, Something went wrong!</strong><br />Error: {$e->getMessage()}<br /><br />e printout:<br />"; #Print the error table print_r ( $e ); } ?> result print to me walidza walidza
-
رح استعمل التيبل احسن افضل
-
then i need insert all childrens in table for parent and for table to all elements and when i remove the parent need to check for all childrens of the parent table
