sscanf warning help
#8

PHP код:
LoadDealerships()
{
    new 
File:handlecount;
    new 
filename[64], line[256], skey[64];
    for(new 
i=1MAX_DEALERSHIPSi++)
    {
        
format(filenamesizeof(filename), DEALERSHIP_FILE_PATH "d%d.ini"i);
        if(!
fexist(filename)) continue;
        
handle fopen(filenameio_read);
        while(
fread(handleline))
        {
            
StripNL(line);
            
strfind(line"=");
            if(!
line[0] || 1) continue;
            
strmid(keyline0s++);
            if(
strcmp(key"Created") == 0DealershipCreated[i] = strval(line[s]);
            else if(
strcmp(key"Pos") == 0sscanf(line[s], "p<,>fff"DealershipPos[i][0],
                
DealershipPos[i][1], DealershipPos[i][2]);
        }
        
fclose(handle);
        if(
DealershipCreated[i]) count++;
    }
    
printf("  Loaded %d dealerships"count);

Reply


Messages In This Thread
sscanf warning help - by semaj - 05.03.2015, 20:19
Respuesta: sscanf warning help - by JuanStone - 05.03.2015, 21:15
Re: sscanf warning help - by semaj - 05.03.2015, 21:21
Re: sscanf warning help - by semaj - 05.03.2015, 21:54
Respuesta: sscanf warning help - by JuanStone - 05.03.2015, 21:58
Re: sscanf warning help - by semaj - 05.03.2015, 22:04
Re: sscanf warning help - by semaj - 05.03.2015, 22:09
Respuesta: sscanf warning help - by JuanStone - 05.03.2015, 22:11
Re: sscanf warning help - by semaj - 05.03.2015, 22:14

Forum Jump:


Users browsing this thread: 3 Guest(s)