18.11.2016, 21:18
I hate the fact that the Github page is not updated and not active at all
I hate the fact that the Github page is not updated and not active at all
|
If you are still talking about "mysqli function is undefined", you need to enable the mysqli extension in php.ini file.
|
Its enabled. Im running Win 10 if that makes any difference. Latest WAMP version tested with both 5.6.25 and the 7.0.10. My WAMP is running perfectly without any problems
http://imgur.com/a/wDQoj EDIT: Altho my php works perfectly in WAMP. For example I tried empty php project with simple mysqli_connect and it works, but in SA:MP it doesnt. Also I might be downloading the wrong one? Im downloading the https://github.com/Lapayo/SAMPHP |
echo 'Current PHP version: ' . phpversion();
Current PHP version: 5.4.15 |
How you mean change? I doubt this plugin use your WAMP PHP version, as WAMP install it at a different location for internal (WAMP only) use.
|
CommandText::register(["/scar"], function ($player, $p, $params) {
$pos = $player->getPos();
$pos->a = $player->getFacingAngle();
$model = $params ? intval($model) : rand(400, 611);
if ($player->adminCar) {
$player->adminCar->destroy();
}
$player->adminCar = Vehicle::create($model, $pos->x, $pos->y, $pos->z, $pos->a, rand(128, 243), rand(128, 243));
$player->putInVehicle($player->adminCar);
});
Guys, I'm making a login/register system, so far it's going well,
About PHP version, I have Lampp/Xampp and also PHP 7 installed on Ubuntu latest. It's really easier with PHP for logging in and signing up <3 less code :P UPDATE: I did the login/register system, working perfectly. UPDATE: Working around command text with params, hope it goes well. Also I gave a question about spawning a vehicle: PHP код:
I checked the return value of CreateVehicle, if is INVALID_VEHICLE_MODEL then vehicle didn't get created. So how can I check if created in php? |
if($player->adminCar !== null) {
// Vehicle created.
} else {
// Vehicle not created.
}
I fuqing hate that, try more debugging and searching for your errors, I hope you get it working.
|
I went thru every possible thing I could :/
I even went as far as getting 3 new versions of PHP to test it on I also re-downloaded WAMPP, reinstalled it.. et.c The issue is, it happens only with samp, works normally with PHP. Like I can execute other PHP scripts normally but whenever I start serverexe kaboom |
Yeah got you on that but honestly no clue what to do anymore lol. I tried everything
|
This plugin doesn't use your WAMPP PHP version, as i told before.
|
PlayerTextDraw
I'm having trouble using
Код:
PlayerTextDraw Can someone provide a working example? For now, PlayerTextDraw and Dialog class don't work at all :/ |
$player->textdraw['foods'] = PlayerTextDraw::create($player,550,105,"_");
$player->textdraw['foods']->useBox();
$player->textdraw['foods']->setBoxColor($var['color']['orange']);
$player->textdraw['foods']->setTextSize(550 + $foods,165);
$player->textdraw['foods']->setLetterSize(1.0,0.1);
$player->textdraw['foods']->show();