error 017: undefined symbol "wheelmodels@YSII_Ag" - 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 017: undefined symbol "wheelmodels@YSII_Ag" (
/showthread.php?tid=487138)
error 017: undefined symbol "wheelmodels@YSII_Ag" -
Yves - 12.01.2014
having a werid issue cannot seem to fix it.
Код:
error 017: undefined symbol "wheelmodels@YSII_Ag"
Код:
iswheelmodel(modelid)
{
new wheelmodels[17] = {1025,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1096,1097,1098};
foreach(wheelmodels, I)
{
if (modelid == wheelmodels[I])
return true;
}
return false;
}
Re: error 017: undefined symbol "wheelmodels@YSII_Ag" -
Yves - 12.01.2014
sorry i fixed it
Re: error 017: undefined symbol "wheelmodels@YSII_Ag" -
sam1929 - 04.07.2014
im sorry to ask this but i have the same error your getting how did you fix this?
Re: error 017: undefined symbol "wheelmodels@YSII_Ag" -
Vince - 04.07.2014
Unlikely that a banned person will answer your question. However, it is fairly useless to use foreach in an array that is completely filled. Use a normal for loop for that.
pawn Код:
new Iterator:yourIteratorName<42>; // where 42 is array size
Iter_Add(yourIteratorName, value);
Iter_Add(/* ... */);
Iter_Add(/* ... */);
Iter_Add(/* ... */);