15.01.2011, 05:27
cheers, don't have to use dini now, although i don't get this error here.
undefined symbol "unformat"
undefined symbol "unformat"
pawn Код:
stock LoadPayPhones(FileName[])
{
if(!fexist(FileName)) return 0;
new
File:PPhone,
Float:PLoc[3],
pTotal,
Line[60];
PPhone = fopen(FileName, io_read);
while(fread(PPhone , Line))
{
unformat(Line, "p<|>fff", PLoc[0], PLoc[1], PLoc[2]); //line 202
CreatePayPhone(PLoc[0], PLoc[1], PLoc[2]);
pTotal++;
}
fclose(PPhone);
printf("%i Pay Phones loaded", pTotal);
return pTotal;
}