How do you fix These error's?
#1

Код:
../include/g_mysql.inc(428) : warning 235: public function lacks forward declaration (symbol "OnQueryError")
C:\Users\Parent\Desktop\MXRP Clean\gamemodes\MXRP.pwn(16385) : error 017: undefined symbol "distance"
C:\Users\Parent\Desktop\MXRP Clean\gamemodes\MXRP.pwn(16385) : warning 215: expression has no effect
C:\Users\Parent\Desktop\MXRP Clean\gamemodes\MXRP.pwn(16385) : error 001: expected token: ";", but found ")"
C:\Users\Parent\Desktop\MXRP Clean\gamemodes\MXRP.pwn(16385) : error 029: invalid expression, assumed zero
C:\Users\Parent\Desktop\MXRP Clean\gamemodes\MXRP.pwn(16385) : fatal error 107: too many error messages on one line

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


4 Errors.
An here is line 16385:
Код:
HouseInfo[iIndex][hPickupID] = CreateDynamicPickup(1273, 23, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]);
		HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_GREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5,10.0, .testlos = 1, .distance = 30.0);
		++iIndex;
	}
	return fclose(iFileHandle);
}
All help Appreciated.
Reply
#2

warning 235: public function lacks forward declaration (symbol "OnQueryError")

forward OnQueryError();

Код:
           HouseInfo[iIndex][hPickupID] = CreateDynamicPickup(1273, 23, HouseInfo[iIndex][hExteriorX],HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]);
           HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_GREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5,10.0, 1,30.0);
         ++iIndex;
        }
	return fclose(iFileHandle);
}
Reply
#3

Quote:
Originally Posted by dEcooR
Посмотреть сообщение
warning 235: public function lacks forward declaration (symbol "OnQueryError")

forward OnQueryError();

Код:
           HouseInfo[iIndex][hPickupID] = CreateDynamicPickup(1273, 23, HouseInfo[iIndex][hExteriorX],HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]);
           HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_GREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5,10.0, 1,30.0);
         ++iIndex;
        }
	return fclose(iFileHandle);
}
Didnt work i still get the same thing
Reply
#4

It's
pawn Код:
streamdistance
Not:
pawn Код:
distance
Reply
#5

So show me the lines after this please..
Reply
#6

1st way:
pawn Код:
HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_GREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5, 10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 30.0);
2nd way:
pawn Код:
HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_GREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5,10.0, .testlos = 1, .streamdistance = 30.0);
Reply
#7

Quote:
Originally Posted by _Zeus
Посмотреть сообщение
It's
pawn Код:
streamdistance
Not:
pawn Код:
distance
thx that fixed it now 3 more errors showed up


Код:
../include/g_mysql.inc(428) : warning 235: public function lacks forward declaration (symbol "OnQueryError")
(23851) : error 017: undefined symbol "distance"
(23851) : warning 215: expression has no effect
(23851) : error 001: expected token: ";", but found ")"
(23851) : error 029: invalid expression, assumed zero
(23851) : fatal error 107: too many error messages on one line

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


4 Errors.
the line
Код:
	CreateDynamicObject(3115,373.40872192,1986.67773438,17.52946091,0.00000000,0.00000000,0.00000000, .interiorid = 0, .distance = 400.0); //object(carrier_lift1_sfse) (1)   ****STATIC OBJECT (NOT STREAMED)****
Reply
#8

Same like the above
pawn Код:
.streamdistance = 400.0);
instead. Plus that warning from the mysql. What MySQL plugin are you using?
Reply
#9

Quote:
Originally Posted by _Zeus
Посмотреть сообщение
Same like the above
pawn Код:
.streamdistance = 400.0);
instead. Plus that warning from the mysql. What MySQL plugin are you using?
Thx im replacing the .distance with streamdistance, an im using g_mysql
Reply
#10

And that is
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)