Sscanf Map Loader ?
#1

Hi, I want to install my maps folder. But the map fails to load. Could you help me ?

Код:
    new
	    File:F = fopen("/Haritalar/TestMap.txt", io_read),
	    str[192],
	    oID,
	    Float:f1,
	    Float:f2,
	    Float:f3,
	    Float:f4,
	    Float:f5,
	    Float:f6,
	    Float:f7
	;
	if(!fexist("Haritalar/TestMap.txt")) return printf("Hata: Yuklenecek dosya bulunamadi !");
    while(fread(F, str))
    {
    	if(sscanf(str, "p<,>dfffffff", oID, f1, f2, f3, f4, f5, f6, f7))
    	printf("CreateDynamicObject(%d, %f, %f, %f, %f, %f, %f, %f);", oID, f1, f2, f3, f4, f5, f6, f7);
	}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)