SA-MP Forums Archive
error 010: invalid function or declaration - 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: error 010: invalid function or declaration (/showthread.php?tid=562069)



error 010: invalid function or declaration - axi92 - 06.02.2015

Do I miss something?
I thought I have done all right...
Код:
enum QuestGiftCarsCords
{
	Float:quest_gift_car_X,
	Float:quest_gift_car_Y,
	Float:quest_gift_car_Z
};
new QuestGiftCars[12][QuestGiftCarsCords];
QuestGiftCars[0][quest_gift_car_Z] = 13.36; //This line is the error line



Re: error 010: invalid function or declaration - HazardouS - 06.02.2015

Add this under a callback, it won't work otherwise.
pawn Код:
//something like this:
public OnGameModeInit()
{
    QuestGiftCars[0][quest_gift_car_Z] = 13.36;
    return 1;
}



AW: error 010: invalid function or declaration - axi92 - 06.02.2015

Oh ok ty didnt know that =)