help me undefined symbol "GarageInfo"
#1

undefined symbol "GarageInfo"




The line its one when the error shows up




stock SaveGarage(i)
{
new FileName[23], string[128];
format(FileName, sizeof(FileName), "Garages/Garage_%d.ini", i);
if(dini_Exists(FileName))
{
dini_Set(FileName, "Owner", GarageInfo[i][gOwner]);
dini_IntSet(FileName, "Owned", GarageInfo[i][gOwned]);
dini_IntSet(FileName, "Radio", GarageInfo[i][gRadio]);
dini_IntSet(FileName, "Locked", GarageInfo[i][gLocked]);
dini_IntSet(FileName, "Level", GarageInfo[i][gLevel]);
dini_IntSet(FileName, "Price", GarageInfo[i][gPrice]);
dini_IntSet(FileName, "ExteriorID", GarageInfo[i][gExteriorID]);
dini_IntSet(FileName, "InteriorID", GarageInfo[i][gInteriorID]);
dini_IntSet(FileName, "VirWorld", GarageInfo[i][gVirWorld]);
dini_FloatSet(FileName, "InteriorX", GarageInfo[i][gInteriorX]);
dini_FloatSet(FileName, "InteriorY", GarageInfo[i][gInteriorY]);
dini_FloatSet(FileName, "InteriorZ", GarageInfo[i][gInteriorZ]);
dini_FloatSet(FileName, "ExteriorX", GarageInfo[i][gExteriorX]);
dini_FloatSet(FileName, "ExteriorY", GarageInfo[i][gExteriorY]);
dini_FloatSet(FileName, "ExteriorZ", GarageInfo[i][gExteriorZ]);
if(GarageInfo[i][gOwned] == 0)
{
format(string, sizeof(string), "{800040}[Garage For Sale]{F0CC00}\nPrice: $%d\nLevel: %d\nID: %d\nTo buy type /buygarage", GarageInfo[i][gPrice],GarageInfo[i][gLevel], i);
UpdateDynamic3DTextLabelText(Garage1[i], COLOR_DCHAT, string);
}
else
{
format(string, sizeof(string), "{800040}[Garage]{F0CC00}\nOwner :%s\nLevel: %d\nID: %d", GarageInfo[i][gOwner], GarageInfo[i][gLevel], i);
UpdateDynamic3DTextLabelText(Garage2[i], COLOR_DCHAT, string);
}
printf( "[system] Garage %d saved.", i);
}
return 1;
}
Reply
#2

From where are you copying the script?! Try to make yourself. For this error, you will have to create an array for GarageInfo.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)