error 017: undefined symbol "wheelmodels@YSII_Ag"
#1

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;
}
Reply
#2

sorry i fixed it
Reply
#3

im sorry to ask this but i have the same error your getting how did you fix this?
Reply
#4

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(/* ... */);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)