Jump to content
  • 0

Probleme server


ionutcypy

Question

va rog ajutatima, am cateva erori la serverul meu in pawn, am cumparat acest gm cam acum 1 saptamana si am doar fisierul .pwn

la compile imi da cateva erori si warnuri MENTIONEZ CA SUNT NOU SI NU STIU EXACT UNDE SA POSTEZ, DACA AM POSTAT UNDE NU TREBUIA VA ROG FRUMOS SA MA SCUZATI


C:\Documents and Settings\CyPy\Desktop\a2viatapwn\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "lights" shadows a variable at a preceding level
C:\Documents and Settings\CyPy\Desktop\a2viatapwn\pawno\include\JunkBuster.inc(3240) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint")
C:\Documents and Settings\CyPy\Desktop\a2viatapwn\a2viata.pwn(11070) : warning 204: symbol is assigned a value that is never used: "caritate2"
C:\Documents and Settings\CyPy\Desktop\a2viatapwn\a2viata.pwn(11069) : warning 204: symbol is assigned a value that is never used: "caritate1"
C:\Documents and Settings\CyPy\Desktop\a2viatapwn\a2viata.pwn(14814) : error 021: symbol already defined: "OnPlayerUpdate"
C:\Documents and Settings\CyPy\Desktop\a2viatapwn\a2viata.pwn(54262) : error 021: symbol already defined: "NameTimer"
C:\Documents and Settings\CyPy\Desktop\a2viatapwn\a2viata.pwn(55707) : error 017: undefined symbol "AdminSpeckON"
C:\Documents and Settings\CyPy\Desktop\a2viatapwn\a2viata.pwn(55707) : warning 215: expression has no effect
C:\Documents and Settings\CyPy\Desktop\a2viatapwn\a2viata.pwn(55707) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\CyPy\Desktop\a2viatapwn\a2viata.pwn(55707) : error 029: invalid expression, assumed zero
C:\Documents and Settings\CyPy\Desktop\a2viatapwn\a2viata.pwn(55707) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

AM SA POSTEZ SI LINIILE CARE IMI DA EROARE POATE VA DATI SEAMA DE LA CE ESTE  :sad:

pawno\include\SpikeStrip.inc(27) : warning 219: local variable "lights" shadows a variable at a preceding level

#define SLOT 1
pawno\include\JunkBuster.inc(3240) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint")
		if (BallasCar(vehicleid) && !ispassenger)
		{
			if(PlayerInfo[playerid][pLeader]==17||PlayerInfo[playerid][pMember]==17) { }
		    else
			{
				new Float:cx, Float:cy, Float:cz;
				GetPlayerPos(playerid, cx, cy, cz);
				SetPlayerPos(playerid, cx,  cy, cz);
			}
		}
C:\Documents and Settings\CyPy\Desktop\a2viatapwn\a2viata.pwn(11070) : warning 204: symbol is assigned a value that is never used: "caritate2" C:\Documents and Settings\CyPy\Desktop\a2viatapwn\a2viata.pwn(11069) : warning 204: symbol is assigned a value that is never used: "caritate1"
		new caritate1 = PlayerInfo[targetid][pCaritate];
		new caritate2 = PlayerInfo[targetid][pCaritatePuncte];
C:\Documents and Settings\CyPy\Desktop\a2viatapwn\a2viata.pwn(55707) : error 017: undefined symbol "AdminSpeckON" C:\Documents and Settings\CyPy\Desktop\a2viatapwn\a2viata.pwn(55707) : warning 215: expression has no effect C:\Documents and Settings\CyPy\Desktop\a2viatapwn\a2viata.pwn(55707) : error 001: expected token: ";", but found "]" C:\Documents and Settings\CyPy\Desktop\a2viatapwn\a2viata.pwn(55707) : error 029: invalid expression, assumed zero C:\Documents and Settings\CyPy\Desktop\a2viatapwn\a2viata.pwn(55707) : fatal error 107: too many error messages on one line
public IsPlayerAdminCall(playerid)
{
	if(PlayerInfo[playerid][pAdmin] > 0)
	{
		AdminSpeckON[playerid] = 1;
		AdminPingON[playerid] = 1;
	}
	if(PlayerInfo[playerid][pAdmin] > 0)
	return 1;
	else
	return 0;
}
C:\Documents and Settings\CyPy\Desktop\a2viatapwn\a2viata.pwn(14814) : error 021: symbol already defined: "OnPlayerUpdate"
public OnPlayerUpdate(playerid)
{
	if(IsPlayerConnected(playerid))
	{
		if(gPlayerLogged[playerid])
		{
			new string3[64];
			new playername3[MAX_PLAYER_NAME];
			GetPlayerName(playerid, playername3, sizeof(playername3));
			format(string3, sizeof(string3), "users/%s.ini", playername3);
			new File: hFile = fopen(string3, io_write);
			if (hFile)
			{
C:\Documents and Settings\CyPy\Desktop\a2viatapwn\a2viata.pwn(54262) : error 021: symbol already defined: "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);
						}
                    }
                }
            }
        }
	}
}

CAM ASTA ESTE. VA IMPLOR AJUTATIMA

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.