SA-MP Forums Archive
Problema la compilare - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Română/Romanian (https://sampforum.blast.hk/forumdisplay.php?fid=40)
+---- Thread: Problema la compilare (/showthread.php?tid=637407)



Problema la compilare - invazie94 - 13.07.2017

error 008: must be a constant expression; assumed zero
si
error 029: invalid expression, assumed zero

Linia cu eroare :
};

Liniile :
//================================================== ============================
new rMessageList[][] = {
"{CCFF99}[INFO]:{FFFFFF} text!.",
"{CCFF99}[INFO]:{FFFFFF} text",
"{CCFF99}[INFO]:{FFFFFF}text.",
"{CCFF99}[INFO]:{FFFFFF} text",
"{CCFF99}[INFO]:{FFFFFF} text.",
"{CCFF99}[INFO]:{FFFFFF} text.",
};
new rCheckList[sizeof(rMessageList)];


Re: Problema la compilare - invazie94 - 14.07.2017

Ma ajuta cineva!? ..


Re: Problema la compilare - Yuri8 - 19.07.2017

In primul rand fara acel egal si 2 nu le-ai scris bine. Revin cu reply cu un link de ajutor.


Re: Problema la compilare - DimaShift - 08.08.2017

aici nu este nici-o greseala...atruncati o privire unde il folositi acest cod


Re: Problema la compilare - Jessyy - 09.08.2017

Ultimul element dintr-o matrice nu trebuie sa aibe ","(virtula), din acest motiv compilatorul tipa.

Код:
new rMessageList[][] = {
"{CCFF99}[INFO]:{FFFFFF} text!.",
"{CCFF99}[INFO]:{FFFFFF} text",
"{CCFF99}[INFO]:{FFFFFF}text.",
"{CCFF99}[INFO]:{FFFFFF} text",
"{CCFF99}[INFO]:{FFFFFF} text.",
"{CCFF99}[INFO]:{FFFFFF} text.",
};
new rCheckList[sizeof(rMessageList)];