SA-MP Forums Archive
urgent help - please respond asap - 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: urgent help - please respond asap (/showthread.php?tid=658118)



THANKS - SOLVED - GaMiX - 23.08.2018

NO IDEA !



(13705) : error 017: undefined symbol "Iterator@Zones"
(13705) : error 017: undefined symbol "Iterator@Zones"
(13705) : error 017: undefined symbol "Iter_Single@Zones"
(13705) : fatal error 107: too many error messages on one line







================================================== ====================



new DBResult: Result,var;
Result = db_query(Database,"SELECT * FROM Zones");
if(db_num_rows(Result))
{
do
{
var = Iter_Free(Zones); // i am line 13705 :P

ZInfo[var][ZminX] = db_get_field_assoc_float(Result, "MinX");
ZInfo[var][ZminY] = db_get_field_assoc_float(Result, "MinY");
ZInfo[var][ZmaxX] = db_get_field_assoc_float(Result, "MaxX");
ZInfo[var][ZmaxY] = db_get_field_assoc_float(Result, "MaxY");
db_get_field_assoc(Result, "Name", ZInfo[var][Name], 32);

================================================== ====================



Re: urgent help - please respond asap - iLearner - 23.08.2018

Did you create the Iterator names Zones first?


Re: urgent help - please respond asap - GaMiX - 23.08.2018

new Iterator:MatsItr<MAX_MATERIALS>;

?


Re: urgent help - please respond asap - iLearner - 23.08.2018

You created an iterator called "MatsItr" but where's "Zones" ?


Re: urgent help - please respond asap - GaMiX - 24.08.2018

Quote:
Originally Posted by iLearner
Посмотреть сообщение
You created an iterator called "MatsItr" but where's "Zones" ?
yea thanks fixed i didn't add iterator for zones