Jump to content
  • 0

ID 0...


xxSPEEDYxx

Question

Nu prea stiu de la ce poate fii...

Sa va explic...cand serverul ii pe host si se conecteaza pe server un jucator, sa zicem ca ii primul...deci are ID 0...

Aici ii problema...daca are ID 0, nu poate merge in masina, nu poate folosi keys, nika...si merge asa greu...cu intreruperi...Cate o data il spawmeaza si alt undeva, unde nu este locatia de spawn...  :undecided: Care poate fii problema?

Fara reclama in semnatura!

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

Bug din RSS v2 nu ai ce sa`i faci 8-|

Esti sigur?

OnPlayerUpdate:

public OnPlayerUpdate( playerid )
{
	if ( InMaze[ playerid ] == 1 )
	{
		if ( IsPlayerInRangeOfPoint( playerid, 7.0, 651.9136, -2825.4656, 46.4523 ) )
		{
		    SpawnPlayer( playerid );
		    GameTextForPlayer( playerid, "~h~~r~Congratulations~n~~g~You finished the Maze.", 5000, 5 );

		    GivePlayerMoney( playerid, 5000 );
		    PlayerInfo[ playerid ][ Coins ] += 5;

		    SendClientMessage( playerid, COLOR_YELLOW, "You will receive $5.000 and 5 coins!" );
		    InMaze[ playerid ] = 0;
		}
	}
	if ( PlayerInfo[ playerid ][ Kills ] > 0 )
    {
        PlayerInfo[ playerid ][ Rank ] = 0;
    }
   	if ( PlayerInfo[ playerid ][ Kills ] > 76 )
	{
        PlayerInfo[ playerid ][ Rank ] = 1;
	}
 	if ( PlayerInfo[ playerid ][ Kills ] > 151 )
	{
	    PlayerInfo[ playerid ][ Rank ] = 2;
	}
 	if ( PlayerInfo[ playerid ][ Kills ] > 276 )
	{
	    PlayerInfo[ playerid ][ Rank ] = 3;
	}
 	if ( PlayerInfo[ playerid ][ Kills ] > 301 )
	{
	    PlayerInfo[ playerid ][ Rank ] = 4;
	}
	if ( PlayerInfo[ playerid ][ Kills ] > 551 )
	{
	    PlayerInfo[ playerid ][ Rank ] = 5;
	}
	if ( PlayerInfo[ playerid ][ Kills ] > 701 )
	{
	    PlayerInfo[ playerid ][ Rank ] = 6;
	}
	if ( PlayerInfo[ playerid ][ Kills ] > 1001 )
	{
	    PlayerInfo[ playerid ][ Rank ] = 7;
	}
	if ( PlayerInfo[ playerid ][ Kills ] > 1501 )
	{
	    PlayerInfo[ playerid ][ Rank ] = 8;
	}
	if ( PlayerInfo[ playerid ][ Kills ] > 1751 )
	{
	    PlayerInfo[ playerid ][ Rank ] = 9;
	}
	if ( PlayerInfo[ playerid ][ Kills ] > 2201 )
	{
	    PlayerInfo[ playerid ][ Rank ] = 10;
	}
	if ( PlayerInfo[ playerid ][ Kills ] > 3001 )
	{
	    PlayerInfo[ playerid ][ Rank ] = 11;
	}
	if ( PlayerInfo[ playerid ][ Kills ] > 6001 )
	{
	    PlayerInfo[ playerid ][ Rank ] = 12;
	}
	return 1;
}

Aici am pus si rank-urile dar o sa le scot de la OnPlayerUpdate...

OnPlayerKeyStateChange - ii Lung:)) Sa-l dau si pe ala?

http://pastebin.com/F2R1E6S0 - Pastebin

Fara reclama in semnatura!

Link to comment
Share on other sites

DreameR are dreptate, asa e in RSS v2, sacadat la primul ID, asa pateam si eu cand luam cate un RSS edit de pe net, si cand jucam pe unul hostat imi mergea bine. ( fiindca nu eram ID 0... )

Incearca sa combini/sa mai stergi de pe la OnPlayerKeyStateChange, sa mai scurtezi din codurile astea de la callback-urile care sunt "chemate" mai des.

Sau: adauga un NPC care sa ocupe ID-ul 0.

Link to comment
Share on other sites

Deci am rezolvat!

Sa va spun si care este solutina pentru cei cei folosesc RSS Edit( v2 ):

1. Downloadati serverul 0.3c( Asta este curent ) intrati in /pawno/includes.

2. Copiati tot ce e acolo si dupa aceea intrati in serverul vostru/pawno/includes si dati PASTE!

De ce trebuie facut asta? Simplu! ... RSS era facut pe 0.3a/b si are includes vechi cele care erau pentru 0.3a/b( a_samp, a_http, a_players, a_objects, etc... )

Multumes lui stuntman pentru sugestia asta de a schimba includes :)

Fara reclama in semnatura!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.