Jump to content
  • 0

Sa rezolvat !! Rog pe cineva sa sterga asta


MaFia_Eugen

Question

14 answers to this question

Recommended Posts

Updateaza serverul la 0.3x

Adauga asta jos in script:

strtok(const string[], &index)
{
	new length = strlen(string);
	while ((index < length) && (string[index] <= ' '))
	{
		index++;
	}

	new offset = index;
	new result[20];
	while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
	{
		result[index - offset] = string[index];
		index++;
	}
	result[index - offset] = EOS;
	return result;
}

Link to comment
Share on other sites

Cauta in fisier(CTRL+F) BunVenit, BunVenit1 si BunVenit2 si unde le gasesti stergele.

Si fa cum tiam zis, updateaza-ti serverul sa dispara si primele 3 erori!

Link to comment
Share on other sites

lam updatat dar asa imi arata !  :huh:

Sigur ai updatat cum trebuie?

Sau vezi sa nu ai doua servere in pc si sa folosesti pawno de la celalalt, nu de la cel care l-ai updatat.

Incearca sa deschizi gm-ul cu pawno din serverul care tocmai lai updatat.

Link to comment
Share on other sites

Gata lam updatat corect dar mai are asta ! [pawn]C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(28634) : warning 217: loose indentation

C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(28639) : warning 217: loose indentation

C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(35584) : error 017: undefined symbol "NameTimer"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

[/pawn]

[pawn]#include <a_samp>

new Scripter;[/pawn]

Untitled-1copy_zps132d2a00.jpg

Link to comment
Share on other sites

Cred ca astea sunt toate de acolo[pawn]public CustomPickups()

{

new Float:oldposx, Float:oldposy, Float:oldposz;

new string[128];

NameTimer();

for(new i = 0; i < MAX_PLAYERS; i++)

{

if(IsPlayerConnected(i))

{

GetPlayerPos(i, oldposx, oldposy, oldposz);

new tmpcar = GetPlayerVehicleID(i);

if(oldposx!=0.0 && oldposy!=0.0 && oldposz!=0.0)

{[/pawn]

[pawn]#include <a_samp>

new Scripter;[/pawn]

Untitled-1copy_zps132d2a00.jpg

Link to comment
Share on other sites

forward NameTimer();
public NameTimer()
{
	for(new i = 0;i < MAX_PLAYERS;i++)
 	{
	 	if(IsPlayerConnected(i))
 		{
 			for(new q = 0;q < MAX_PLAYERS;q++)
 			{
				if(IsPlayerConnected(q))
				{
 					new Float:p1x;
					new Float:p1y;
					new Float:p1z;
					new Float:p2x;
					new Float:p2y;
					new Float:p2z;
					if(IsPlayerConnected(i) && IsPlayerConnected(q))
					{
						GetPlayerPos(i,p1x,p1y,p1z);
  					GetPlayerPos(q,p2x,p2y,p2z);
						if(GetPointDistanceToPointExMorph(p1x,p1y,p1z,p2x,p2y,p2z) < pdistance)
						{
							if(PlayerInfo[q][pMaskuse] != 1)
	  					{
								ShowPlayerNameTagForPlayer(i,q,1);
							}
	  				}
						else
						{
							ShowPlayerNameTagForPlayer(i,q,0);
						}
          }
        }
      }
    }
	}
}

Jos in script.

Link to comment
Share on other sites

Prima data mai pus sa pun astea mai imi dadea 2 errori

[pawn]strtok(const string[], &index)

{

new length = strlen(string);

while ((index < length) && (string[index] <= ' '))

{

index++;

}

new offset = index;

new result[20];

while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))

{

result[index - offset] = string[index];

index++;

}

result[index - offset] = EOS;

return result;

}[/pawn]

iar acum am pus astea la sfarsit si mai dat erori mai multe [pawn]forward NameTimer();

public NameTimer()

{

for(new i = 0;i < MAX_PLAYERS;i++)

{

if(IsPlayerConnected(i))

{

for(new q = 0;q < MAX_PLAYERS;q++)

{

if(IsPlayerConnected(q))

{

new Float:p1x;

new Float:p1y;

new Float:p1z;

new Float:p2x;

new Float:p2y;

new Float:p2z;

if(IsPlayerConnected(i) && IsPlayerConnected(q))

{

GetPlayerPos(i,p1x,p1y,p1z);

  GetPlayerPos(q,p2x,p2y,p2z);

if(GetPointDistanceToPointExMorph(p1x,p1y,p1z,p2x,p2y,p2z) < pdistance)

{

if(PlayerInfo[q][pMaskuse] != 1)

  {

ShowPlayerNameTagForPlayer(i,q,1);

}

  }

else

{

ShowPlayerNameTagForPlayer(i,q,0);

}

          }

        }

      }

    }

}

}[/pawn]

Astea sunt erorile [pawn]C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(28634) : warning 217: loose indentation

C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(28639) : warning 217: loose indentation

C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(35584) : error 012: invalid function call, not a valid address

C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(35584) : error 029: invalid expression, assumed zero

C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(35584) : warning 215: expression has no effect

C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38344) : error 021: symbol already defined: "NameTimer"

C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38345) : error 021: symbol already defined: "NameTimer"

C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38347) : error 010: invalid function or declaration

C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38349) : error 010: invalid function or declaration

C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38351) : error 010: invalid function or declaration

C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38353) : error 010: invalid function or declaration

C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38361) : error 010: invalid function or declaration

C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38365) : error 010: invalid function or declaration

C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38367) : error 010: invalid function or declaration

C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38372) : error 010: invalid function or declaration

C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38382) : warning 203: symbol is never used: "NameTimer"

C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38382) : warning 203: symbol is never used: "p1x"

C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38382) : warning 203: symbol is never used: "p1y"

C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38382) : warning 203: symbol is never used: "p1z"

C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38382) : warning 203: symbol is never used: "p2x"

C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38382) : warning 203: symbol is never used: "p2y"

C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38382) : warning 203: symbol is never used: "p2z"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

12 Errors.

[/pawn]

[pawn]#include <a_samp>

new Scripter;[/pawn]

Untitled-1copy_zps132d2a00.jpg

Link to comment
Share on other sites

Am reusit sa fac ceva dar [pawn]C:\Documents and Settings\Owner\Desktop\hgz.pwn(28635) : warning 217: loose indentation

C:\Documents and Settings\Owner\Desktop\hgz.pwn(28640) : warning 217: loose indentation

C:\Documents and Settings\Owner\Desktop\hgz.pwn(38364) : warning 217: loose indentation

C:\Documents and Settings\Owner\Desktop\hgz.pwn(38365) : warning 217: loose indentation

C:\Documents and Settings\Owner\Desktop\hgz.pwn(38365) : error 017: undefined symbol "GetPointDistanceToPointExMorph"

C:\Documents and Settings\Owner\Desktop\hgz.pwn(38367) : error 017: undefined symbol "pMaskuse"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

2 Errors.

[/pawn]

[pawn]#include <a_samp>

new Scripter;[/pawn]

Untitled-1copy_zps132d2a00.jpg

Link to comment
Share on other sites

Am reusit sa fac ceva dar [pawn]C:\Documents and Settings\Owner\Desktop\hgz.pwn(28635) : warning 217: loose indentation

C:\Documents and Settings\Owner\Desktop\hgz.pwn(28640) : warning 217: loose indentation

C:\Documents and Settings\Owner\Desktop\hgz.pwn(38364) : warning 217: loose indentation

C:\Documents and Settings\Owner\Desktop\hgz.pwn(38365) : warning 217: loose indentation

C:\Documents and Settings\Owner\Desktop\hgz.pwn(38365) : error 017: undefined symbol "GetPointDistanceToPointExMorph"

C:\Documents and Settings\Owner\Desktop\hgz.pwn(38367) : error 017: undefined symbol "pMaskuse"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

2 Errors.

[/pawn]

C:\Documents and Settings\Owner\Desktop\hgz.pwn(28635) : warning 217: loose indentation

C:\Documents and Settings\Owner\Desktop\hgz.pwn(28640) : warning 217: loose indentation

C:\Documents and Settings\Owner\Desktop\hgz.pwn(38364) : warning 217: loose indentation

C:\Documents and Settings\Owner\Desktop\hgz.pwn(38365) : warning 217: loose indentation

[pawn]#pragma tabsize 0 // sub #include[/pawn]

idiots.png
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.