SA-MP Forums Archive
How do you fix These error's? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How do you fix These error's? (/showthread.php?tid=455102)



How do you fix These error's? - jasonsmith - 31.07.2013

Код:
../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.


Re: How do you fix These error's? - dEcooR - 31.07.2013

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);
}



Re: How do you fix These error's? - jasonsmith - 31.07.2013

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


Re: How do you fix These error's? - Konstantinos - 31.07.2013

It's
pawn Код:
streamdistance
Not:
pawn Код:
distance



Re: How do you fix These error's? - dEcooR - 31.07.2013

So show me the lines after this please..


Re: How do you fix These error's? - Konstantinos - 31.07.2013

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);



Re: How do you fix These error's? - jasonsmith - 31.07.2013

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)****



Re: How do you fix These error's? - Konstantinos - 31.07.2013

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


Re: How do you fix These error's? - jasonsmith - 31.07.2013

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


Re: How do you fix These error's? - Konstantinos - 31.07.2013

And that is