Number of vehicle models: 0?
#1

in the log it says this Number of vehicle models: 0 and i go in game no cars in there nothing but there should be

PHP код:
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3z-R4, (C)2005-2014 SA-MP Team
[21:53:57] 
[
21:53:57] Server Plugins
[21:53:57] --------------
[
21:53:57]  Loading plugin: streamer
[21:53:57] 
*** 
Streamer Plugin v2.7.4 by Incognito loaded ***
[
21:53:57]   Loaded.
[
21:53:57]  Loading plugin: sscanf
[21:53:57] 
[
21:53:57]  ===============================
[
21:53:57]       sscanf plugin loaded.     
[
21:53:57]          Version:  2.8.1        
[21:53:57]    (c) 2012 Alex "******" Cole  
[21:53:57]  ===============================
[
21:53:57]   Loaded.
[
21:53:57]  Loading plugin: mysql
[21:53:57] 
  > 
MySQL plugin R5 successfully loaded.
[
21:53:57]   Loaded.
[
21:53:57]  Loading plugin: socket
[21:53:57]  Socket plugin v0.1b loaded.
[
21:53:57]   Loaded.
[
21:53:57]  Loaded 4 plugins.
[
21:53:57] 
[
21:53:57] Filterscripts
[21:53:57] ---------------
[
21:53:57]   Loading filterscript 'gm_custmapping.amx'...
[
21:53:57]   Loaded 1 filterscripts.
[
21:53:57]  
[
21:53:57]  
[
21:53:57]  
[
21:53:57]  ======================================= 
[
21:53:57]  |                                     | 
[
21:53:57]  |        YSI version 1.06.0002        | 
[
21:53:57]  |        By Alex "******" Cole        | 
[
21:53:57]  |                                     | 
[
21:53:57]  ======================================= 
[
21:53:57]  
[
21:53:57]  
[
21:53:57]  
[
21:53:57] onfoot_rate = 40  (int, read-only)
[
21:53:57] incar_rate = 40  (int, read-only)
[
21:53:57] weapon_rate = 40  (int, read-only)
[
21:53:59] Listen server running on port 58000
[21:54:00] [LoadPoints] 0 points loaded.
[
21:54:00]  
[
21:54:00] -------------------------------------------
[
21:54:00] Loading...
[
21:54:00] Sin Life Roleplay 
[21:54:00] -------------------------------------------
[
21:54:00]  
[
21:54:00] Number of vehicle models: 0
[21:54:00]  
[
21:54:00]  ========================================== 
[
21:54:00]  |                                        | 
[
21:54:00]  |  A new version (v3.09.0684) of YSI is  | 
[
21:54:00]  |            available from:             | 
[
21:54:00]  |                                        | 
[
21:54:00]  |     www.y-less.com/YSI/YSI_1.0.zip     | 
[
21:54:00]  |                                        | 
[
21:54:00]  | Changelog:                             | 
[
21:54:00]  |                                        | 
[
21:54:00]  |   3.00.0000:                           | 
[
21:54:00]  |                                        | 
[
21:54:00]  |   YSI 3.0 released!  Now includes the  | 
[
21:54:00]  | "y_text" library for better messages,  | 
[
21:54:00]  | and a reworked "y_classes" library.    | 
[
21:54:00]  | Largely documented here                | 
[
21:54:00]  | "http://forum.sa-mp.com/showthread.php | 
[21:54:00]  | ?t=321092"
.                            | 
[
21:54:00]  |                                        | 
[
21:54:00]  |   3.01.0002:                           | 
[
21:54:00]  |                                        | 
[
21:54:00]  |   Small fixes to "y_text" and          | 
[
21:54:00]  | "y_classes".                           | 
[
21:54:00]  |                                        | 
[
21:54:00]  |   3.09.0684:                           | 
[
21:54:00]  |                                        | 
[
21:54:00]  |   Reverted to old download location.   | 
[
21:54:00]  | Improved (and fixed) version checks;   | 
[
21:54:00]  | added y_bitmap, y_areas, y_races,      | 
[
21:54:00]  | y_zonenames, better documentation;     | 
[
21:54:00]  | MANY other bug fixes - see the github  | 
[
21:54:00]  | repository for more details:           | 
[
21:54:00]  |                                        | 
[
21:54:00]  ========================================== 
[
21:54:00] 
Reply
#2

I GET THIS IN THE LOG

PHP код:
[22:10:45] [debug] Run time error 4: "Array index out of bounds"
[22:10:45] [debug]  Accessing element at index 15 past array upper bound 14
[22:10:45] [debug] AMX backtrace:
[
22:10:45] [debug] #0 00110d10 in LoadcDealerships () at C:\Users\MdotC\Desktop\NEW ONE NO SERVER THINGY\New folder (12)\gamemodes\SLRP.pwn:27359
[22:10:45] [debug] #1 001495c0 in public SSCANF_OnGameModeInit () at C:\Users\MdotC\Desktop\NEW ONE NO SERVER THINGY\New folder (12)\gamemodes\SLRP.pwn:30476
[22:10:45] [debug] #2 000129e8 in public zcmd_OnGameModeInit () at C:\Users\MdotC\Desktop\PLA MY SQL BACKUP\New folder (13)\pawno\include\sscanf2.inc:174
[22:10:45] [debug] #3 native CallLocalFunction () from samp-server.exe
[22:10:45] [debug] #4 00012388 in ?? () at C:\Users\MdotC\Desktop\PLA MY SQL BACKUP\New folder (13)\pawno\include\ZCMD.inc:68
[22:10:45] [debug] #5 0000abc8 in public Itter_OnGameModeInit () at C:\Users\MdotC\Desktop\PLA MY SQL BACKUP\New folder (13)\pawno\include\YSI\y_hooks/impl.inc:484
[22:10:45] [debug] #6 native CallLocalFunction () from samp-server.exe
[22:10:45] [debug] #7 00002a7c in public ScriptInit_OnGameModeInit () at C:\Users\MdotC\Desktop\PLA MY SQL BACKUP\New folder (13)\pawno\include\YSI\y_iterate.inc:791
[22:10:45] [debug] #8 000015d4 in public OnGameModeInit () at C:\Users\MdotC\Desktop\PLA MY SQL BACKUP\New folder (13)\pawno\include\YSI\internal\..\y_scriptinit.inc:194 
Reply
#3

Show this callback - LoadcDealerships ()
Reply
#4

PHP код:
LoadcDealerships()
{
    new 
string2[64];
    
format(string2, sizeof(string2), "cardealerships.ini");
    new 
File: DealerFile = fopen(string2, io_read);
    if ( 
DealerFile )
    {
        new 
key[ 256 ] , val[ 256 ];
        new 
Data[ 256 ];
        while ( 
fread( DealerFile , Data , sizeof( Data ) ) )
        {
            new 
string[128];
            for(new 
f = 0; f < MAX_FAMILY; f++)
            {
                
key = ini_GetKey( Data );
                
format(string, 128, "cd%dOwned",f);
                if( 
strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); CarDealershipInfo[f][cdOwned] = strval( val ); }
                
format(string, 128, "cd%dOwner",f);
                if( 
strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); strmid(CarDealershipInfo[f][cdOwner], val, 0, strlen(val)-1, 255); }
                
format(string, 128, "cd%dEntranceX",f);
                if( 
strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); CarDealershipInfo[f][cdEntranceX] = floatstr( val ); }
                
format(string, 128, "cd%dEntranceY",f);
                if( 
strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); CarDealershipInfo[f][cdEntranceY] = floatstr( val ); }
                
format(string, 128, "cd%dEntranceZ",f);
                if( 
strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); CarDealershipInfo[f][cdEntranceZ] = floatstr( val ); }
                
format(string, 128, "cd%dExitX",f);
                if( 
strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); CarDealershipInfo[f][cdExitX] = floatstr( val ); }
                
format(string, 128, "cd%dExitY",f);
                if( 
strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); CarDealershipInfo[f][cdExitY] = floatstr( val ); }
                
format(string, 128, "cd%dExitZ",f);
                if( 
strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); CarDealershipInfo[f][cdExitZ] = floatstr( val ); }
                
format(string, 128, "cd%dMessage",f);
                if( 
strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); strmid(CarDealershipInfo[f][cdMessage], val, 0, strlen(val)-1, 255); }
                
format(string, 128, "cd%dTill",f);
                if( 
strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); CarDealershipInfo[f][cdTill] = strval( val ); }
                
format(string, 128, "cd%dInterior",f);
                if( 
strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); CarDealershipInfo[f][cdInterior] = strval( val ); }
                
format(string, 128, "cd%dVehicleSpawn0",f);
                if( 
strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); CarDealershipInfo[f][cdVehicleSpawn][0] = floatstr( val ); }
                
format(string, 128, "cd%dVehicleSpawn1",f);
                if( 
strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); CarDealershipInfo[f][cdVehicleSpawn][1] = floatstr( val ); }
                
format(string, 128, "cd%dVehicleSpawn2",f);
                if( 
strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); CarDealershipInfo[f][cdVehicleSpawn][2] = floatstr( val ); }
                
format(string, 128, "cd%dVehicleSpawn3",f);
                if( 
strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); CarDealershipInfo[f][cdVehicleSpawn][3] = floatstr( val ); }
                
format(string, 128, "cd%dRadius",f);
                if( 
strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); CarDealershipInfo[f][cdRadius] = floatstr( val ); }
                
format(string, 128, "cd%dPrice",f);
                if( 
strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); CarDealershipInfo[f][cdPrice] = strval( val ); }
                for(new 
fv = 0; fv < MAX_DEALERSHIPVEHICLES; fv++)
                {
                    
format(string, 128, "cd%dVeh%dModelId",f, fv);
                    if( 
strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); CarDealershipInfo[f][cdVehicleModel][fv] = strval( val ); }
                    
format(string, 128, "cd%dVeh%dCost",f, fv);
                    if( 
strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); CarDealershipInfo[f][cdVehicleCost][fv] = strval( val ); }
                    
format(string, 128, "cd%dVeh%dSpawnX",f, fv);
                    if( 
strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); CarDealershipInfo[f][cdVehicleSpawnX][fv] = floatstr( val ); }
                    
format(string, 128, "cd%dVeh%dSpawnY",f, fv);
                    if( 
strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); CarDealershipInfo[f][cdVehicleSpawnY][fv] = floatstr( val ); }
                    
format(string, 128, "cd%dVeh%dSpawnZ",f, fv);
                    if( 
strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); CarDealershipInfo[f][cdVehicleSpawnZ][fv] = floatstr( val ); }
                    
format(string, 128, "cd%dVeh%dSpawnA",f, fv);
                    if( 
strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); CarDealershipInfo[f][cdVehicleSpawnAngle][fv] = floatstr( val ); }
                }
            }
        }
        
fclose(DealerFile);
    }
    return 
1;
}
SavecDealerships()
{
    new 
string3[32];
    
format(string3, sizeof(string3), "cardealerships.ini");
    new 
File: hFile = fopen(string3, io_write);
    if (
hFile)
    {
        new var[
32];
        for(new 
f = 0; f < MAX_CARDEALERSHIPS; f++)
           {
            
format(var, 32, "cd%dOwned=%d\n",f, CarDealershipInfo[f][cdOwned]); fwrite(hFile, var);
            
format(var, 32, "cd%dOwner=%s\n",f, CarDealershipInfo[f][cdOwner]); fwrite(hFile, var);
            
format(var, 32, "cd%dEntranceX=%.1f\n",f, CarDealershipInfo[f][cdEntranceX]); fwrite(hFile, var);
            
format(var, 32, "cd%dEntranceY=%.1f\n",f, CarDealershipInfo[f][cdEntranceY]); fwrite(hFile, var);
            
format(var, 32, "cd%dEntranceZ=%.1f\n",f, CarDealershipInfo[f][cdEntranceZ]); fwrite(hFile, var);
            
format(var, 32, "cd%dExitX=%.1f\n",f, CarDealershipInfo[f][cdExitX]); fwrite(hFile, var);
            
format(var, 32, "cd%dExitY=%.1f\n",f, CarDealershipInfo[f][cdExitX]); fwrite(hFile, var);
            
format(var, 32, "cd%dExitZ=%.1f\n",f, CarDealershipInfo[f][cdExitX]); fwrite(hFile, var);
            
format(var, 32, "cd%dMessage=%s\n\n",f, CarDealershipInfo[f][cdMessage]); fwrite(hFile, var);
            
format(var, 32, "cd%dTill=%d\n",f, CarDealershipInfo[f][cdTill]); fwrite(hFile, var);
            
format(var, 32, "cd%dInterior=%d\n",f, CarDealershipInfo[f][cdInterior]); fwrite(hFile, var);
            
format(var, 32, "cd%dVehicleSpawn0=%.1f\n",f, CarDealershipInfo[f][cdVehicleSpawn][0]); fwrite(hFile, var);
            
format(var, 32, "cd%dVehicleSpawn1=%.1f\n",f, CarDealershipInfo[f][cdVehicleSpawn][1]); fwrite(hFile, var);
            
format(var, 32, "cd%dVehicleSpawn2=%.1f\n",f, CarDealershipInfo[f][cdVehicleSpawn][2]); fwrite(hFile, var);
            
format(var, 32, "cd%dVehicleSpawn3=%.1f\n",f, CarDealershipInfo[f][cdVehicleSpawn][3]); fwrite(hFile, var);
            
format(var, 32, "cd%dRadius=%.1f\n",f, CarDealershipInfo[f][cdRadius]); fwrite(hFile, var);
            
format(var, 32, "cd%dPrice=%d\n",f, CarDealershipInfo[f][cdPrice]); fwrite(hFile, var);
            for(new 
fv = 0; fv < MAX_DEALERSHIPVEHICLES; fv++)
               {
                   
format(var, 32, "cd%dVeh%dModelId=%d\n",f, fv, CarDealershipInfo[f][cdVehicleModel][fv]); fwrite(hFile, var);
                
format(var, 32, "cd%dVeh%dCost=%d\n",f, fv,CarDealershipInfo[f][cdVehicleCost][fv]); fwrite(hFile, var);
                
format(var, 32, "cd%dVeh%dSpawnX=%.1f\n",f, fv,CarDealershipInfo[f][cdVehicleSpawnX][fv]); fwrite(hFile, var);
                
format(var, 32, "cd%dVeh%dSpawnY=%.1f\n",f, fv,CarDealershipInfo[f][cdVehicleSpawnY][fv]); fwrite(hFile, var);
                
format(var, 32, "cd%dVeh%dSpawnZ=%.1f\n",f, fv,CarDealershipInfo[f][cdVehicleSpawnZ][fv]); fwrite(hFile, var);
                
format(var, 32, "cd%dVeh%dSpawnA=%.1f\n",f, fv,CarDealershipInfo[f][cdVehicleSpawnAngle][fv]); fwrite(hFile, var);
            }
          }
        
fclose(hFile);
    }
    return 
1;
}
stock UpdatePoints() {
    new
        
szFileStr[256],
        
File: fHandle = fopen("points.cfg", io_write);
    if(
fHandle)
    {
        for(new 
iIndex; iIndex < MAX_POINTS; iIndex++) {
            
format(szFileStr, sizeof(szFileStr), "%f|%f|%f|%d|%d|%s|%s|%s|%d\r\n",
                
Points[iIndex][Pointx],
                
Points[iIndex][Pointy],
                
Points[iIndex][Pointz],
                
Points[iIndex][Type],
                
Points[iIndex][Vulnerable],
                
Points[iIndex][Owner],
                
Points[iIndex][CapperName],
                
Points[iIndex][Name],
                
Points[iIndex][MatPoint]
            );
            
fwrite(fHandle, szFileStr);
        }
        return 
fclose(fHandle);
    }
    return 
0;
} 
Reply


Forum Jump:


Users browsing this thread: