sscanf Problem !!! Fast Help !!!
#1

Server logo
pawn Code:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7, (C)2005-2015 SA-MP Team

[20:14:35]
[20:14:35] Server Plugins
[20:14:35] --------------
[20:14:35]  Loading plugin: Whirlpool.dll
[20:14:35]  
[20:14:35]  ==================
[20:14:35]  
[20:14:35]   Whirlpool loaded
[20:14:35]  
[20:14:35]  ==================
[20:14:35]  
[20:14:35]   Loaded.
[20:14:35]  Loading plugin: filemenager.dll
[20:14:35]   Failed.
[20:14:35]  Loading plugin: ceashdetect.dll
[20:14:35]   Failed.
[20:14:35]  Loading plugin: streamer.dll
[20:14:35]

*** Streamer Plugin v2.7.2 by Incognito loaded ***

[20:14:35]   Loaded.
[20:14:35]  Loading plugin: sscanf.dll
[20:14:35]

[20:14:35]  ===============================

[20:14:35]       sscanf plugin loaded.    

[20:14:35]          Version:  2.8.1        

[20:14:35]    (c) 2012 Alex "******" Cole  

[20:14:35]  ===============================

[20:14:35]   Loaded.
[20:14:35]  Loaded 3 plugins.

[20:14:35]
[20:14:35] Filterscripts
[20:14:35] ---------------
[20:14:35]   Loading filterscript 'LuxAdmin.amx'...
[20:14:35]
 ___________________________________________________
[20:14:35]  
[20:14:35]                    L.A.S v1.6 Beta                        
[20:14:35]                  ---------------
[20:14:35]              LuX Administration System              
[20:14:35]  ___________________________________________________

[20:14:35]  -> Loading...
[20:14:35]
 -Current Configurations Successfully Loaded!
[20:14:35]

[20:14:35]  -> L.A.S Basic Loaded Configurations:

[20:14:35]  AutoLogin:    [Enabled!]  ReadCmds:  [Enabled!]
[20:14:35]  AntiSwear:    [Disabled]  AntiSpam:  [Enabled!]
[20:14:35]  NameKick:     [Enabled!]  AntiBot:   [Enabled!]
[20:14:35]  ConnectMsgs:  [Enabled!]  NoCaps:    [Disabled]
[20:14:35]  AdminCmdMsgs: [Enabled!]  Anti Ads:  [Enabled!]
[20:14:35]  SaveMoney:    [Enabled!]  MustLogin  [Enabled!]
[20:14:35]  Forbid Weaps: [Disabled]  AdmSkins:  [Disabled]
[20:14:35]  ReadPms:      [Enabled!]  MaxLevel:  [10]
[20:14:35]  SaveWeaps     [Enabled!]  Max Ping:  [0ms]
[20:14:35]  ChatDisabled: [Disabled]  MuteWarns: [4]
[20:14:35]  MustRegister: [Enabled!]  AdmSkins   [217, 214]

[20:14:35]  -> Loaded Successfully!

[20:14:35]  Date: 27/5/2015 - Time: 20:14:35
[20:14:35]  ___________________________________________________

[20:14:35]   Loaded 1 filterscripts.

[20:14:35] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35] sscanf warning: Format specifier does not match parameter count.
[20:14:35]   Loaded 16 vehicles
[20:14:35] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.
[20:14:35] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.
[20:14:35] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.
[20:14:35]   Loaded 3 dealerships
[20:14:35] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.
[20:14:35] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.
[20:14:35] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.
[20:14:35] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.
[20:14:35] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.
[20:14:35]   Loaded 5 fuel stations
[20:14:35]   [FilterScript] Loading Attached Object Editor...
[20:14:35]   [FS:AOE] "maxplayers" (200) > "MAX_PLAYERS" (100)
  >> Preferring "MAX_PLAYERS" for loop...
[20:14:35]   [FilterScript] Attached Object Editor for SA:MP 0.3e+ has been loaded!
  * Current version: 0.3 - March, 2014
[20:14:35]   * Player attached objects count: 0
[20:14:35] ------------------------------------------------

[20:14:35] Loaded 3 vehicles from: vehicles/trains.txt
[20:14:35] Loaded 3 vehicles from: vehicles/pilots.txt
[20:14:35] Loaded 15 vehicles from: vehicles/lv_law.txt
[20:14:35] Loaded 39 vehicles from: vehicles/lv_airport.txt
[20:14:35] Loaded 255 vehicles from: vehicles/lv_gen.txt
[20:14:35] Loaded 38 vehicles from: vehicles/sf_law.txt
[20:14:35] Loaded 35 vehicles from: vehicles/sf_airport.txt
[20:14:35] Loaded 353 vehicles from: vehicles/sf_gen.txt
[20:14:35] Loaded 24 vehicles from: vehicles/ls_law.txt
[20:14:35] Loaded 37 vehicles from: vehicles/ls_airport.txt
[20:14:35] Loaded 98 vehicles from: vehicles/ls_gen_inner.txt
[20:14:35] Loaded 389 vehicles from: vehicles/ls_gen_outer.txt
[20:14:35] Loaded 71 vehicles from: vehicles/whetstone.txt
[20:14:35] Loaded 168 vehicles from: vehicles/bone.txt
[20:14:35] Loaded 61 vehicles from: vehicles/flint.txt
[20:14:35] Loaded 96 vehicles from: vehicles/tierra.txt
[20:14:35] Loaded 96 vehicles from: vehicles/red_county.txt
[20:14:35] Total vehicles from files: 1781
[20:14:35]
-----------------------------
[20:14:35]  Las Vegas DeathMatch By CraTzy
[20:14:35]         The True Hurts!        
[20:14:35]  Gamemode is started...       
[20:14:35] Marijuana growth system by Blunt
[20:14:35] Load status: LOADED SUCCESSFULLY
[20:14:35] -----------------------------

[20:14:35] Number of vehicle models: 176
i need help i dont know a hell happend here

pawn Code:
LoadVehicles()
{
    new string[64];
    new File:handle, count;
    new filename[64], line[256], s, key[64];
    for(new i=1; i < MAX_DVEHICLES; i++)
    {
        format(filename, sizeof(filename), VEHICLE_FILE_PATH "v%d.ini", i);
        if(!fexist(filename)) continue;
        handle = fopen(filename, io_read);
        while(fread(handle, line))
        {
            StripNL(line);
            s = strfind(line, "=");
            if(!line[0] || s < 1) continue;
            strmid(key, line, 0, s++);
            if(strcmp(key, "Created") == 0) VehicleCreated[i] = strval(line[s]);
            else if(strcmp(key, "Model") == 0) VehicleModel[i] = strval(line[s]);
            else if(strcmp(key, "Pos") == 0) sscanf(line[s], "p<,>", VehiclePos[i][0], VehiclePos[i][1],
                VehiclePos[i][2], VehiclePos[i][3]);
            else if(strcmp(key, "Colors") == 0) sscanf(line[s], "p<,>", VehicleColor[i][0], VehicleColor[i][1]);
            else if(strcmp(key, "Interior") == 0) VehicleInterior[i] = strval(line[s]);
            else if(strcmp(key, "VirtualWorld") == 0) VehicleWorld[i] = strval(line[s]);
            else if(strcmp(key, "Owner") == 0) strmid(VehicleOwner[i], line, s, sizeof(line));
            else if(strcmp(key, "NumberPlate") == 0) strmid(VehicleNumberPlate[i], line, s, sizeof(line));
            else if(strcmp(key, "Value") == 0) VehicleValue[i] = strval(line[s]);
            else if(strcmp(key, "Lock") == 0) VehicleLock[i] = strval(line[s]);
            else if(strcmp(key, "Alarm") == 0) VehicleAlarm[i] = strval(line[s]);
            else if(strcmp(key, "Paintjob") == 0) VehiclePaintjob[i] = strval(line[s]);
            else
            {
                for(new t=0; t < sizeof(VehicleTrunk[]); t++)
                {
                    format(string, sizeof(string), "Trunk%d", t+1);
                    if(strcmp(key, string) == 0) sscanf(line[s], "p<,>", VehicleTrunk[i][t][0], VehicleTrunk[i][t][1]);
                }
                for(new m=0; m < sizeof(VehicleMods[]); m++)
                {
                    format(string, sizeof(string), "Mod%d", m);
                    if(strcmp(key, string) == 0) VehicleMods[i][m] = strval(line[s]);
                }
            }
        }
        fclose(handle);
        if(VehicleCreated[i]) count++;
    }
    printf("  Loaded %d vehicles", count);
}
Reply


Messages In This Thread
sscanf Problem !!! Fast Help !!! - by Toxik - 27.05.2015, 18:07
Re: sscanf Problem !!! Fast Help !!! - by Konstantinos - 27.05.2015, 18:10
Re: sscanf Problem !!! Fast Help !!! - by Toxik - 27.05.2015, 18:15
Re: sscanf Problem !!! Fast Help !!! - by Konstantinos - 27.05.2015, 18:21
Re: sscanf Problem !!! Fast Help !!! - by Toxik - 27.05.2015, 19:05

Forum Jump:


Users browsing this thread: 1 Guest(s)