vendredi 24 juillet 2015

help +rep

Code:

if(sscanf(params,"ui",pname,adminlvl))return SendClientMessage(playerid,COL_GREEN,"USAGE:/makeadmin [ID] [LEVEL]");
error:
Code:

argument type mismatch (argument 1)


Mapping Won't Load Properly

Hey guys.. I've loaded a new map to my server, and some objects dont load until you get close to them.. All you can see is blue..
Here is a screenshot:




How do I make it so that they all load and you can see all the objects from far away?

Thank you guys!

(( I tried making it CreateDynamicObjectEx and it still doesn't work.. :/ ))


Signatures

I'm trying to make signatures system but it's not working quite as well, look at the code

Code:

<?
/*
    Credits
    - Nordoz - Original Script
    - pds2k12 - Editing & fixing the script.
*/

$username = "root"; //Your MySQL Username.
$password = ""; // Your MySQL Pass.
$database = "samp"; // Your MySQL database.
$host = "127.0.0.1"; // Your MySQL host.

$player_name = $_GET[ 'Ime' ];

mysql_connect($host, $username, $password); // Connection to the database. on this line

@mysql_select_db($database) or die("ERROR: Sorry, We can't connect on your database, please re check if you entered the right information.");

/* To protect MySQL injection. */
$player_name = stripslashes($player_name);
$player_name = mysql_real_escape_string($player_name);



$query = "SELECT * FROM `samp` WHERE Ime = '$player_name'"; 
$result = mysql_query( $query );
$i = mysql_num_rows( $result );

if ($i == 1)
{

    // Creating of the .png image.
    header('Content-Type: image/png;');
    $im = @imagecreatefrompng('header.png') or die("ERROR: Cannot select the correct image. Please contact the webmaster.");
 
  //Creating the colour.
    $text_color = imagecolorallocate($im, 0, 0, 0);//color black
   
    //Creating the font.
    $font = 'font.ttf';

    $GetPlayerName = mysql_result($result, 0, "Ime"); // Gets the username of the player and put it in the variable $Playername.
    $GetPlayerMoney = mysql_result($result, 0, "Novac"); // Gets the money of the player and put it in the variable $Money.
    $GetPlayerScore = mysql_result($result, 0, "Level"); // Gets the score of the player and put it in the variable $Score.

    $print_username = "Ime: $GetPlayerName";
    $print_score = "Novac: $GetPlayerMoney";
    $print_money = "Level: $GetPlayerScore";

    imagettftext($im, 9, 0, 20, 30, $text_color, $font, $print_username); //Prints the username of the specific player.
    imagettftext($im, 9, 0, 20, 40, $text_color, $font, $print_score);  //Prints the money of the specific player.
    imagettftext($im, 9, 0, 20, 50, $text_color, $font, $print_money); //Prints the score of the specific player.
        imagepng($im);
    imagedestroy($im);
}
else echo('ERROR: Sorry, We can not find your account in our database.');

mysql_close();

?>


And its not working, not even giving me errors which it should, im connected on local host, everything else works quite as well, but not this, and when i go Show Source it displays the full php code to me and it should display only html


Ping problem

Hey everybody,

Since a good week in SAMP I'm experiencing lag IG and I notice whenever I start my samp, the ping is bouncing all over the place. From what used to be a ping around ~100 with difference off about 5 turned in a ping bouncing between 100 and 150. Also no matter which server I click on the picture always show a ping going insane, reaching differences of 100 in a matter of seconds. Now I checked with my ISP, nothing wrong there. My speedtest results show a steady ping and my internet connection is one of the best around in my country. This ping translates itself to server lag IG and therefor making it unplayable.

Summarizing:
Router reset plenty of times.
ISP is experiencing no issues.
My internet is stable, high speeds.
Nothing changed on my setup whilst playing.
I'm not using any mods.
This is not FPS lag, but internet lag.

Suggestions?


auto kick by login in PRRP GM

When I'll try to login to the panel control of the server, I just get kick from the server.
says "Server closed conaction" (Is the PR-RP gamemodes)
(I try to put new plugins but notinhg help's me.)

Thanks for helping me!


[Ajuda] Camera em 1ª pessoa

Gostaria de saber se existe algum fs de primeira pessoa sem ser o que funciona somente em carros.


Streamer

Hey..
I just updated my streamer plugin..
Then added my map and it said that MSVCP120.dll was missing..
I downloaded it and then It didn't give me that message anymore, however it gives me an error in server log..

Code:

[13:31:42] Script[gamemodes/PCF-RP.amx]: Run time error 19: "File or function is not found"
[13:31:42] Number of vehicle models: 0

Do I need to put something in my script for streamer to work? ((I put #include <streamer>))

Thanks!