PAWNO ERRORS!
#1

Hello everyone!
I'm having problems with pawno, see:
Код:
C:\Users\Nothing\Desktop\SERVER\pawno\include\DOF2.inc(1563) : warning 217: loose indentation
C:\Users\Nothing\Desktop\SERVER\pawno\include\DOF2.inc(1568) : warning 217: loose indentation
C:\Users\Nothing\Desktop\SERVER\pawno\include\DOF2.inc(1578) : warning 217: loose indentation
C:\Users\Nothing\Desktop\SERVER\pawno\include\DOF2.inc(1581) : warning 217: loose indentation
C:\Users\Nothing\Desktop\SERVER\pawno\include\DOF2.inc(1606) : warning 217: loose indentation
C:\Users\Nothing\Desktop\SERVER\pawno\include\DOF2.inc(1614) : warning 217: loose indentation
C:\Users\Nothing\Desktop\SERVER\pawno\include\DOF2.inc(1617) : warning 217: loose indentation
C:\Users\Nothing\Desktop\SERVER\pawno\include\DOF2.inc(1628) : warning 217: loose indentation
C:\Users\Nothing\Desktop\SERVER\pawno\include\DOF2.inc(1631) : warning 217: loose indentation
C:\Users\Nothing\Desktop\SERVER\pawno\include\DOF2.inc(1638) : warning 217: loose indentation
C:\Users\Nothing\Desktop\SERVER\pawno\include\DOF2.inc(1641) : warning 217: loose indentation
C:\Users\Nothing\Desktop\SERVER\pawno\include\DOF2.inc(1644) : warning 217: loose indentation
C:\Users\Nothing\Desktop\SERVER\pawno\include\DOF2.inc(1647) : warning 217: loose indentation
C:\Users\Nothing\Desktop\SERVER\pawno\include\DOF2.inc(1650) : warning 217: loose indentation
C:\Users\Nothing\Desktop\SERVER\pawno\include\DOF2.inc(1658) : warning 217: loose indentation
C:\Users\Nothing\Desktop\SERVER\pawno\include\streamer.inc(455) : error 079: inconsistent return types (array & non-array)
C:\Users\Nothing\Desktop\SERVER\gamemodes\RPG.pwn(24) : warning 225: unreachable code
C:\Users\Nothing\Desktop\SERVER\gamemodes\RPG.pwn(24) : error 017: undefined symbol "main"
C:\Users\Nothing\Desktop\SERVER\gamemodes\RPG.pwn(38) : error 029: invalid expression, assumed zero
C:\Users\Nothing\Desktop\SERVER\gamemodes\RPG.pwn(38) : error 017: undefined symbol "SendHelperMessage"
C:\Users\Nothing\Desktop\SERVER\gamemodes\RPG.pwn(38) : error 029: invalid expression, assumed zero
C:\Users\Nothing\Desktop\SERVER\gamemodes\RPG.pwn(38) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
Line 455:
Код:
stock F_PlayerObjectUpdate(playerid, Float:x, Float:y, Float:z)
{
	if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
	{

		OldX[playerid] = x;
		OldY[playerid] = y;
		OldZ[playerid] = z;
		new nr;
		new Float:ObjDistance[F_MAX_OBJECTS];
		new ObjectArr[F_MAX_OBJECTS];
		for(new objectid; objectid<F_MAX_OBJECTS; objectid++)
		{


			if(F_IsValidObject(objectid))
			{

				ObjDistance[objectid] = floatsqroot(floatpower(floatsub(ObjectInfo[objectid][ox],x),2)+floatpower(floatsub(ObjectInfo[objectid][oy],y),2)+floatpower(floatsub(ObjectInfo[objectid][oz],z),2));

				if(floatcmp(ObjDistance[objectid], StreamRange) == -1)
				{


					ObjectArr[nr] = objectid;
					nr++;
				}
			}
		}
Line 34:
Код:
main()
{
	print(". . . . . . . . . . . . . . . . . . . .");
	print("Gamemode .");
	print("Versгo: Samp Client 0.3x");
	print("Fundador: .");
	print("Sub Fundador: .");
	print("Puxa no mбximo 5% de CPU.");
	print(". . . . . . . . . . . . . . . . . . . .");
}
Line 48:
Код:
forward SendHelperMessage(COLOR, string[]); forward HelperCheck(playerid); forward HelpersVaga(); forward LoadHelper(); forward SaveHelper(); forward HelperBroadCast(COLOR,const string[],level); forward IsAtGasStation(playerid); forward LoadOrgEspecial();
help me please!
Reply
#2

#define main and #define HelperCheck
For the loose indetitation, make some tabs.
For the line, 455 and 24, i dont know, sorry.
Reply
#3

I noticed that there's a warning about unreachable code at the same line as main. Where did you add main? Would you mind show us few lines above it?

Quote:
Originally Posted by Aleksabre
Посмотреть сообщение
#define main and #define HelperCheck
For the loose indetitation, make some tabs.
For the line, 455 and 24, i dont know, sorry.
Do you seriously use #define symbol on every error you get? I'm just curious because it's wrong and I've seen it many times been said.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)