problem.
#1

hi, whats the problem?

when I turn on the server, my mode name changes to Unknown. When I stop using that function ( // ) its works good, i.m the mode text is good.

pawn Код:
stock LoadCars( )
{
    // Funkcija: LoadCars( )
    // Pakrauna visas maрinas iр duomenш bazлs
   
    mysql_query( "SELECT * FROM `masinudb`" );
    mysql_store_result( );
    new
        Query[ 750 ],
        Masina = 0
    ;
    while( mysql_fetch_row( Query ) )
    {
        new
            Float: Pozicija[ 4 ],
            Float: Health,
            Tuning[ 14 ],
            Damage[ 4 ]
        ;
        sscanf( Query, "dffffffffffffddddddds[ 7 ]dddddddddddddddddfdddd",
        MasinuDB[ Masina ][ vModelis ], MasinuDB[ Masina ][ vTurgus ][ 1 ], MasinuDB[ Masina ][ vTurgus ][ 0 ], MasinuDB[ Masina ][ vTurgus ][ 2 ], MasinuDB[ Masina ][ vTurgus ][ 3 ],
        MasinuDB[ Masina ][ vSpawn ][ 0 ], MasinuDB[ Masina ][ vSpawn ][ 1 ], MasinuDB[ Masina ][ vSpawn ][ 2 ], MasinuDB[ Masina ][ vSpawn ][ 3 ], Pozicija[ 0 ], Pozicija[ 1 ], Pozicija[ 2 ], Pozicija[ 3 ],
        MasinuDB[ Masina ][ vKaina ], MasinuDB[ Masina ][ vPaintjob ], MasinuDB[ Masina ][ vSpalvos ][ 0 ], MasinuDB[ Masina ][ vSpalvos ][ 1 ], MasinuDB[ Masina ][ vDegalai ], MasinuDB[ Masina ][ vUzraktas ],
        MasinuDB[ Masina ][ vSignalizacija ], MasinuDB[ Masina ][ vNumeriai ], Tuning[ 0 ], Tuning[ 1 ], Tuning[ 2 ], Tuning[ 3 ],
        Tuning[ 4 ], Tuning[ 5 ], Tuning[ 6 ], Tuning[ 7 ], Tuning[ 8 ], Tuning[ 9 ], Tuning[ 10 ], Tuning[ 11 ], Tuning[ 12 ], Tuning[ 13 ], MasinuDB[ Masina ][ vTMasina ], MasinuDB[ Masina ][ vNupirkta ], MasinuDB[ Masina ][ vLangai ], Health, Damage[ 0 ], Damage[ 1 ], Damage[ 2 ], Damage[ 3 ] );
       
        UpdateVehicleDamageStatus( Masina, Damage[ 0 ], Damage[ 1 ], Damage[ 2 ], Damage[ 3 ] );
        AddVehicleComponent( Masina, Tuning[ 0 ] );
        AddVehicleComponent( Masina, Tuning[ 1 ] );
        AddVehicleComponent( Masina, Tuning[ 2 ] );
        AddVehicleComponent( Masina, Tuning[ 3 ] );
        AddVehicleComponent( Masina, Tuning[ 4 ] );
        AddVehicleComponent( Masina, Tuning[ 5 ] );
        AddVehicleComponent( Masina, Tuning[ 6 ] );
        AddVehicleComponent( Masina, Tuning[ 7 ] );
        AddVehicleComponent( Masina, Tuning[ 8 ] );
        AddVehicleComponent( Masina, Tuning[ 9 ] );
        AddVehicleComponent( Masina, Tuning[ 10 ] );
        AddVehicleComponent( Masina, Tuning[ 11 ] );
        AddVehicleComponent( Masina, Tuning[ 12 ] );
        AddVehicleComponent( Masina, Tuning[ 13 ] );

        if( MasinuDB[ Masina ][ vNupirkta ] == 0 )
        {
            Masina = CreateVehicle( MasinuDB[ Masina ][ vModelis ], MasinuDB[ Masina ][ vTurgus ][ 0 ], MasinuDB[ Masina ][ vTurgus ][ 1 ], MasinuDB[ Masina ][ vTurgus ][ 2 ], MasinuDB[ Masina ][ vTurgus ][ 3 ], MasinuDB[ Masina ][ vSpalvos ][ 0 ], MasinuDB[ Masina ][ vSpalvos ][ 1 ], -1 );
            format( Query, 160, "{FFFFFF}Рis automobilis {6EF83C}yra {FFFFFF}parduodamas\n{FFFFFF}Pavadinimas: {FF0000}%s\n{FFFFFF}Kaina: {FF0000}$%d", MasinuPavadinimai[ GetVehicleModel( Masina ) - 400 ], MasinuDB[ Masina ][ vKaina ] );
            MasinuDB[ Masina ][ vText ] = Create3DTextLabel( Query, -1, MasinuDB[ Masina ][ vTurgus ][ 0 ], MasinuDB[ Masina ][ vTurgus ][ 1 ], MasinuDB[ Masina ][ vTurgus ][ 2 ], 25, 0, 0 );
            Attach3DTextLabelToVehicle( MasinuDB[ Masina ][ vText ], Masina, 0, 0, 0 );
        }
        else
        {
            Masina = CreateVehicle( MasinuDB[ Masina ][ vModelis ], MasinuDB[ Masina ][ vTurgus ][ 0 ], MasinuDB[ Masina ][ vTurgus ][ 1 ], MasinuDB[ Masina ][ vTurgus ][ 2 ], MasinuDB[ Masina ][ vTurgus ][ 3 ], MasinuDB[ Masina ][ vSpalvos ][ 0 ], MasinuDB[ Masina ][ vSpalvos ][ 1 ], -1 );
            ChangeVehiclePaintjob( Masina, MasinuDB[ Masina ][ vPaintjob ] );
            SetVehicleNumberPlate( Masina, MasinuDB[ Masina ][ vNumeriai ] );
            SetVehicleToRespawn( Masina );
        }
        Itter_Add(fMasinos, Masina);
    }
    mysql_free_result( );
}
Reply
#2

i dont understand first words

What are they ?
Reply
#3

Quote:
Originally Posted by SwatOwner
Посмотреть сообщение
i dont understand first words

What are they ?
When I open samp-server.exe my mode name changes to Unknown.. When I stop using 'LoadCars' in OnGameModeInit ( LoadCars( ); >>> //LoadCars( ); ) mode names changes to that what I set in OnGameModeInit
Reply
#4

Bump
Reply
#5

bump
Reply
#6

bump, I know that someone know's where that problem is

Help:P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)