undefined symbol - 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: undefined symbol (
/showthread.php?tid=582071)
undefined symbol -
alexanderjb918 - 17.07.2015
Undefined symbol DestroyAddStaticVehicle
Код:
if (IsValidDynamicObject(g_aFireObjects[i]))
DestroyDynamicObject(g_aFireObjects[i]);
DestroyAddStaticVehicle(g_aFireObjects[i]);
Re: undefined symbol -
Jstylezzz - 17.07.2015
Try
DestroyVehicle. DestroyAddStaticVehicle does not exist as far as I know lol.
AddStaticVehicle -> Create vehicles
DestroyVehicle -> Delete vehicle
If you ask for help in the future, try to write a more detailed post. Literally posting the error message and posting some code with it is a little vague most of the times.
EDIT: Oh yeah, searching on ****** will also help you a lot in the future. Ever since SA-MP exists, people have been scripting and encountered error messages. Most of the problems people encounter are probably answered already, and lay around somewhere on the Internet.
Re: undefined symbol -
SoFahim - 17.07.2015
Quote:
Originally Posted by Jstylezzz
Try DestroyVehicle. DestroyAddStaticVehicle does not exist as far as I know lol.
AddStaticVehicle -> Create vehicles
DestroyVehicle -> Delete vehicle
If you ask for help in the future, try to write a more detailed post. Literally posting the error message and posting some code with it is a little vague most of the times.
|
Same as you . Befor posting, check the wiki.
Re: undefined symbol -
SpikeSpigel - 17.07.2015
Do #define DestroyAddStaticVehicle DestroyVehicle .
and-.. THE HECK is that ?
if (IsValidDynamicObject(g_aFireObjects[i]))
DestroyDynamicObject(g_aFireObjects[i]);
DestroyAddStaticVehicle(g_aFireObjects[i]);
Re: undefined symbol -
Jstylezzz - 17.07.2015
Quote:
Originally Posted by SpikeSpigel
Do #define DestroyAddStaticVehicle DestroyVehicle .
and-.. THE HECK is that ?
if (IsValidDynamicObject(g_aFireObjects[i]))
DestroyDynamicObject(g_aFireObjects[i]);
DestroyAddStaticVehicle(g_aFireObjects[i]);
|
.... why? Why define a new function for a something that is EXACTLY the same, and already exists?