Jump to content
  • 0

Ajutor


Nurdock

Question

Problema intalnita (descriere):Cand pornesc samp server si ma loghez pe server imi apare ceva erori si dupaia nu pot folosi comanda /a /o /gotoevent si multe altele va rog ajutatima nu stiu ce sa mai fac.
Ero(area / rile) / warning-(ul / urile):

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

[15:55:16] filterscripts = ""  (string)
[15:55:16] 
[15:55:16] Server Plugins
[15:55:16] --------------
[15:55:16]  Loading plugin: mysql
[15:55:16]  >> plugin.mysql: R39-2 successfully loaded.
[15:55:16]   Loaded.
[15:55:16]  Loading plugin: sscanf
[15:55:16] 

[15:55:16]  ===============================

[15:55:16]       sscanf plugin loaded.     

[15:55:16]          Version:  2.8.1        

[15:55:16]    (c) 2012 Alex "Y_Less" Cole  

[15:55:16]  ===============================

[15:55:16]   Loaded.
[15:55:16]  Loading plugin: crashdetect
[15:55:16]   CrashDetect v4.15.1 is OK.
[15:55:16]   Loaded.
[15:55:16]  Loading plugin: streamer
[15:55:16] 

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

[15:55:16]   Loaded.
[15:55:16]  Loaded 4 plugins.

[15:55:16] 
[15:55:16] Filterscripts
[15:55:16] ---------------
[15:55:16]   Loaded 0 filterscripts.

[15:55:16] [MYSQL]: Connection to database (w3op) was established!
[15:55:16]  
[15:55:16]  
[15:55:16]  RPG: RO-RPG: v0.3.9 LS - LV
[15:55:16] ____________________________
[15:55:16] Number of vehicle models: 82
[15:55:19] 54 houses loaded
[15:55:19] 46 business loaded
[15:55:19] 15 Sbusiness loaded
[15:55:19] 4 safes loaded
[15:55:19] 0 total vehicles
[15:56:06] [connection] 25.96.37.253:55091 requests connection cookie.
[15:56:07] [connection] incoming connection: 25.96.37.253:55091 id: 0
[15:56:07] [join] Totti has joined the server (0:25.96.37.253)
[15:56:14] Totti has logged in.
[15:56:14] [debug] Run time error 4: "Array index out of bounds"
[15:56:14] [debug]  Accessing element at index 65535 past array upper bound 1999
[15:56:14] [debug] AMX backtrace:
[15:56:14] [debug] #0 000a4fd4 in public Tunen (65535) from w3op.amx
[15:56:14] [debug] #1 000356f8 in public WhenVehCheck (0) from w3op.amx
[15:56:14] [debug] Run time error 4: "Array index out of bounds"
[15:56:14] [debug]  Accessing element at index 65535 past array upper bound 1999
[15:56:14] [debug] AMX backtrace:
[15:56:14] [debug] #0 000a4fd4 in public Tunen (65535) from w3op.amx
[15:56:14] [debug] #1 00036f38 in public WhenVehCheck1 (0) from w3op.amx
[15:56:15] Totti has picked up/attempted to spawn $0.
[15:56:16] Totti has picked up/attempted to spawn $0.
[15:56:17] Totti has picked up/attempted to spawn $0.
[15:56:18] Totti has picked up/attempted to spawn $0.
[15:56:21] Totti has picked up/attempted to spawn $0.
[15:56:26] Totti has picked up/attempted to spawn $0.
[15:56:27] Totti has picked up/attempted to spawn $0.
[15:56:28] Totti has picked up/attempted to spawn $0.
[15:56:29] Totti has picked up/attempted to spawn $0.
 

Liniile de cod / sursa / script-ul(obligatoriu): nu e nici un script
Imagini / Video (optional):-
Ati incercat sa rezolvati singur?:da

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Cauta 

public Tunen   si vezi ce e in neregula la el

Ai un for care acceseaza peste definirea variabilei sau acceasea direct  nu prin for

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

  • 0

poti sa imi zici mai expicit iti dau tot ce e in public tunen

asta am acolo:

public Tunen(vehicleid)
{
    new v = vehicleid;
    if(VehiclesInfo[v][vComponent1]!=0) { AddVehicleComponent(vehicleid,VehiclesInfo[v][vComponent1]); }
    if(VehiclesInfo[v][vComponent2]!=0) { AddVehicleComponent(vehicleid,VehiclesInfo[v][vComponent2]); }
    if(VehiclesInfo[v][vComponent3]!=0) { AddVehicleComponent(vehicleid,VehiclesInfo[v][vComponent3]); }
    if(VehiclesInfo[v][vComponent4]!=0) { AddVehicleComponent(vehicleid,VehiclesInfo[v][vComponent4]); }
    if(VehiclesInfo[v][vComponent5]!=0) { AddVehicleComponent(vehicleid,VehiclesInfo[v][vComponent5]); }
    if(VehiclesInfo[v][vComponent6]!=0) { AddVehicleComponent(vehicleid,VehiclesInfo[v][vComponent6]); }
    if(VehiclesInfo[v][vComponent7]!=0) { AddVehicleComponent(vehicleid,VehiclesInfo[v][vComponent7]); }
    if(VehiclesInfo[v][vComponent8]!=0) { AddVehicleComponent(vehicleid,VehiclesInfo[v][vComponent8]); }
    if(VehiclesInfo[v][vComponent9]!=0) { AddVehicleComponent(vehicleid,VehiclesInfo[v][vComponent9]); }
    if(VehiclesInfo[v][vComponent10]!=0) { AddVehicleComponent(vehicleid,VehiclesInfo[v][vComponent10]); }
    if(VehiclesInfo[v][vComponent11]!=0) { AddVehicleComponent(vehicleid,VehiclesInfo[v][vComponent11]); }
    if(VehiclesInfo[v][vComponent12]!=0) { AddVehicleComponent(vehicleid,VehiclesInfo[v][vComponent12]); }
    if(VehiclesInfo[v][vComponent13]!=0) { AddVehicleComponent(vehicleid,VehiclesInfo[v][vComponent13]); }
    if(VehiclesInfo[v][vComponent14]!=0) { AddVehicleComponent(vehicleid,VehiclesInfo[v][vComponent14]); }
    if(VehiclesInfo[v][vComponent15]!=0) { AddVehicleComponent(vehicleid,VehiclesInfo[v][vComponent15]); }
    if(VehiclesInfo[v][vComponent16]!=0) { AddVehicleComponent(vehicleid,VehiclesInfo[v][vComponent16]); }
    if(VehiclesInfo[v][vComponent17]!=0) { AddVehicleComponent(vehicleid,VehiclesInfo[v][vComponent17]); }
    if(VehiclesInfo[v][vColor1] != 0 || VehiclesInfo[v][vColor2] != 0)
    {
        ChangeVehicleColor(vehicleid,VehiclesInfo[v][vColor1],VehiclesInfo[v][vColor2]);
    }
    if(VehiclesInfo[v][vPaintJob]!=0) { ChangeVehiclePaintjob(vehicleid,VehiclesInfo[v][vPaintJob]); }
}
 

Link to comment
Share on other sites

  • 0

verifica la  WhenVehCheck 

spune asa


[15:56:14] [debug] #1 000356f8 in public WhenVehCheck (0) from w3op.amx
[15:56:14] [debug] Run time error 4: "Array index out of bounds"
[15:56:14] [debug]  Accessing element at index 65535 past array upper bound 1999

 

Deci ai pe acolo ceva erori, ceva care nu ai scris corect,

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

  • 0

public WhenVehCheck1(eent)
{
    new query[254];
    cache_get_data(rows, fields, handle);

    cache_get_field_content(0, "ID", temp), VehiclesInfo[eent][vID] = strval(temp);
    cache_get_field_content(0, "Model", temp), VehiclesInfo[eent][vModel] = strval(temp);
    cache_get_field_content(0, "PositionX", temp), VehiclesInfo[eent][vPositionX] = floatstr(temp);
    cache_get_field_content(0, "PositionY", temp), VehiclesInfo[eent][vPositionY] = floatstr(temp);
    cache_get_field_content(0, "PositionZ", temp), VehiclesInfo[eent][vPositionZ] = floatstr(temp);
    cache_get_field_content(0, "Angle", temp), VehiclesInfo[eent][vAngle] = floatstr(temp);
    cache_get_field_content(0, "Color1", temp), VehiclesInfo[eent][vColor1] = strval(temp);
    cache_get_field_content(0, "Color2", temp), VehiclesInfo[eent][vColor2] = strval(temp);
    cache_get_field_content(0, "PaintJob", temp), VehiclesInfo[eent][vPaintJob] = strval(temp);
    cache_get_field_content(0, "Owner", temp), VehiclesInfo[eent][vOwner] = strval(temp);
    cache_get_field_content(0, "Lock", temp), VehiclesInfo[eent][vLock] = strval(temp);
    cache_get_field_content(0, "KM", temp), VehiclesInfo[eent][vKM] = strval(temp);
    cache_get_field_content(0, "Days", temp), VehiclesInfo[eent][vDays] = strval(temp);
    cache_get_field_content(0, "NumberPlate", temp), VehiclesInfo[eent][vNumberPlate] = sizeof(temp);
    cache_get_field_content(0, "Component1", temp), VehiclesInfo[eent][vComponent1] = strval(temp);
    cache_get_field_content(0, "Component2", temp), VehiclesInfo[eent][vComponent2] = strval(temp);
    cache_get_field_content(0, "Component3", temp), VehiclesInfo[eent][vComponent3] = strval(temp);
    cache_get_field_content(0, "Component4", temp), VehiclesInfo[eent][vComponent4] = strval(temp);
    cache_get_field_content(0, "Component5", temp), VehiclesInfo[eent][vComponent5] = strval(temp);
    cache_get_field_content(0, "Component6", temp), VehiclesInfo[eent][vComponent6] = strval(temp);
    cache_get_field_content(0, "Component7", temp), VehiclesInfo[eent][vComponent7] = strval(temp);
    cache_get_field_content(0, "Component8", temp), VehiclesInfo[eent][vComponent8] = strval(temp);
    cache_get_field_content(0, "Component9", temp), VehiclesInfo[eent][vComponent9] = strval(temp);
    cache_get_field_content(0, "Component10", temp), VehiclesInfo[eent][vComponent10] = strval(temp);
    cache_get_field_content(0, "Component11", temp), VehiclesInfo[eent][vComponent11] = strval(temp);
    cache_get_field_content(0, "Component12", temp), VehiclesInfo[eent][vComponent12] = strval(temp);
    cache_get_field_content(0, "Component13", temp), VehiclesInfo[eent][vComponent13] = strval(temp);
    cache_get_field_content(0, "Component14", temp), VehiclesInfo[eent][vComponent14] = strval(temp);
    cache_get_field_content(0, "Component15", temp), VehiclesInfo[eent][vComponent15] = strval(temp);
    cache_get_field_content(0, "Component16", temp), VehiclesInfo[eent][vComponent16] = strval(temp);
    cache_get_field_content(0, "Component17", temp), VehiclesInfo[eent][vComponent17] = strval(temp);
    cache_get_field_content(0, "ServerID", temp), VehiclesInfo[eent][vServerID] = strval(temp);
    cache_get_field_content(0, "Slot", temp), VehiclesInfo[eent][vSlot] = strval(temp);

    VehiclesInfo[eent][vServerID] = CreateVehicle(VehiclesInfo[eent][vModel],VehiclesInfo[eent][vPositionX],VehiclesInfo[eent][vPositionY],VehiclesInfo[eent][vPositionZ],VehiclesInfo[eent][vAngle],VehiclesInfo[eent][vColor1],VehiclesInfo[eent][vColor2],60000);
    mysql_format(handle, query, sizeof(query), "UPDATE `vehicles` SET ServerID = %i WHERE ID = %i LIMIT 1", VehiclesInfo[eent][vServerID], VehiclesInfo[eent][vID]);
    mysql_query(handle, query);
    Tunen(VehiclesInfo[eent][vServerID]);
    printf("!!: %i", VehiclesInfo[eent][vServerID]); // debugging.
    return 1;
}
 

Link to comment
Share on other sites

  • 0
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.