Jump to content

InceMan

Membru
  • Posts

    755
  • Joined

  • Last visited

  • Days Won

    42

Everything posted by InceMan

  1. Problema intalnita (descriere):de vre-o cateva zile ma chinuiesc sa rezolv bugul la public LoadBizz() si nu reusesc nu imi dau seama de la ce ar putea sa fieEro(area / rile) / warning-(ul / urile): ---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3.7-R2, (C)2005-2015 SA-MP Team [08:45:41] [08:45:41] Server Plugins [08:45:41] -------------- [08:45:41] Loading plugin: crashdetect.so [08:45:41] CrashDetect v4.15.1 is OK. [08:45:41] Loaded. [08:45:41] Loading plugin: streamer.so [08:45:41] *** Streamer Plugin v2.7.9 by Incognito loaded *** [08:45:41] Loaded. [08:45:41] Loading plugin: sscanf.so [08:45:41] [08:45:41] =============================== [08:45:41] sscanf plugin loaded. [08:45:41] Version: 2.8.1 [08:45:41] (c) 2012 Alex "Y_Less" Cole [08:45:41] =============================== [08:45:41] Loaded. [08:45:41] Loading plugin: mysql_5.5.so [08:45:41] >> plugin.mysql: R34 successfully loaded. [08:45:41] Loaded. [08:45:41] Loading plugin: mysql.so [08:45:41] >> plugin.mysql: R38 successfully loaded. [08:45:41] Loaded. [08:45:41] Loading plugin: profiler.so [08:45:41] Profiler v2.10.4 is OK. [08:45:41] Loaded. [08:45:41] Loading plugin: mysql_static.so [08:45:41] >> plugin.mysql: R34 successfully loaded. [08:45:41] Loaded. [08:45:41] Loaded 7 plugins. [08:45:41] [08:45:41] Filterscripts [08:45:41] --------------- [08:45:41] Loading filterscript 'Harta.amx'... [08:45:41] Unable to load filterscript 'Harta.amx'. [08:45:41] Loaded 0 filterscripts. [08:45:41] Turfs: 48 [08:45:41] 1509 - Objects. [08:45:41] 19 - Pickups. [08:45:41] OnGameModeInit Loaded [08:45:41] Script Loaded - Andu & Shower. FiveGame RPG v4.1.0 [08:45:41] Number of vehicle models: 120 [08:45:41] Houses: 103 [08:45:41] [debug] Run time error 4: "Array index out of bounds" [08:45:41] [debug] Accessing element at index 55 past array upper bound 54 [08:45:41] [debug] AMX backtrace: [08:45:41] [debug] #0 000e9a74 in public LoadBizz () at C:\Users\andu\Desktop\FIVEGAME 2016\samp03\gamemodes\FiveGame.pwn:15988 [08:45:41] Dynamic Factions: 14 [08:45:41] Clans: 2 [08:45:41] Cars: 51 [08:45:41] Stocks: 101 Liniile de cod / sursa / script-ul(obligatoriu):public LoadBizz() { new PropertyString[256]; bussines = cache_num_rows(); for(new i = 1; i <= bussines; i++) { new b = i - 1; BizzInfo[bID] = cache_get_field_content_int(b, "ID"); BizzInfo[bOwned] = cache_get_field_content_int(b, "Owned"); cache_get_field_content(b, "Owner", BizzInfo[bOwner], SQL, 130); cache_get_field_content(b, "Message", BizzInfo[bMessage], SQL, 130); BizzInfo[bEntranceX] = cache_get_field_content_float(b, "EntranceX"); BizzInfo[bEntranceY] = cache_get_field_content_float(b, "EntranceY"); BizzInfo[bEntranceZ] = cache_get_field_content_float(b, "EntranceZ"); BizzInfo[bExitX] = cache_get_field_content_float(b, "ExitX"); BizzInfo[bExitY] = cache_get_field_content_float(b, "ExitY"); BizzInfo[bExitZ] = cache_get_field_content_float(b, "ExitZ"); BizzInfo[bLevelNeeded] = cache_get_field_content_int(b, "LevelNeeded"); BizzInfo[bBuyPrice] = cache_get_field_content_int(b, "BuyPrice"); BizzInfo[bEntranceCost] = cache_get_field_content_int(b, "EntranceCost"); BizzInfo[bTill] = cache_get_field_content_int(b, "Till"); BizzInfo[bLocked] = cache_get_field_content_int(b, "Locked"); BizzInfo[bInterior] = cache_get_field_content_int(b, "Interior"); BizzInfo[bVirtual] = cache_get_field_content_int(b, "Virtual"); BizzInfo[bSbiz] = cache_get_field_content_int(b, "Sbiz"); BizzInfo[bType] = cache_get_field_content_int(b, "Type"); if(BizzInfo[bOwned] == 0) { DestroyDynamic3DTextLabel(BizzLabel); format(PropertyString, sizeof(PropertyString),"{357AB7}%s \n{FFFFFF}Business {357AB7}#%d \n{357AB7}This Business is for sale(/buybiz) ! \n{FFFFFF}Owner: {357AB7}AdmBot \n {FFFFFF}Price: {357AB7}%s \n{FFFFFF}Level: {357AB7}%d",BizzInfo[bMessage],i,FormatNumber(BizzInfo[bBuyPrice]),BizzInfo[bLevelNeeded]); BizzLabel = CreateDynamic3DTextLabel(PropertyString ,0x0066FFCC,BizzInfo[bEntranceX], BizzInfo[bEntranceY], BizzInfo[bEntranceZ],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0); CreateDynamicPickup(1239, 1, BizzInfo[bEntranceX], BizzInfo[bEntranceY], BizzInfo[bEntranceZ]); pickups++; } else if(BizzInfo[bOwned] == 1) { DestroyDynamic3DTextLabel(BizzLabel); format(PropertyString, sizeof(PropertyString),"{357AB7}%s \n{FFFFFF}Business {357AB7}#%d \n{FFFFFF}Owner: {357AB7}%s \n{FFFFFF}Fee: {357AB7}$%s",BizzInfo[bMessage],i,BizzInfo[bOwner],FormatNumber(BizzInfo[bEntranceCost])); BizzLabel = CreateDynamic3DTextLabel(PropertyString ,0x0066FFCC,BizzInfo[bEntranceX], BizzInfo[bEntranceY], BizzInfo[bEntranceZ],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0); CreateDynamicPickup(1239, 1, BizzInfo[bEntranceX], BizzInfo[bEntranceY], BizzInfo[bEntranceZ]); pickups++; } if(BizzInfo[bType] == 1) CreateDynamicMapIcon(BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ],52,0,-1,-1,-1,750.0); //Bank if(BizzInfo[bType] == 2) CreateDynamicMapIcon(BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ],18,0,-1,-1,-1,750.0); //GunShop if(BizzInfo[bType] == 3) CreateDynamicMapIcon(BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ],49,0,-1,-1,-1,750.0); //Bars if(BizzInfo[bType] == 4) CreateDynamicMapIcon(BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ],38,0,-1,-1,-1,750.0); //Sex Shop if(BizzInfo[bType] == 5) CreateDynamicMapIcon(BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ],25,0,-1,-1,-1,750.0); //Casino if(BizzInfo[bType] == 6) CreateDynamicMapIcon(BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ],17,0,-1,-1,-1,750.0); //24/7 if(BizzInfo[bType] == 7) CreateDynamicMapIcon(BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ],10,0,-1,-1,-1,750.0); //Burger Shot if(BizzInfo[bType] == 8) CreateDynamicMapIcon(BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ],54,0,-1,-1,-1,750.0); //Gym if(BizzInfo[bType] == 9) CreateDynamicMapIcon(BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ],29,0,-1,-1,-1,750.0); //Pizza if(BizzInfo[bType] == 10) CreateDynamicMapIcon(BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ],51,0,-1,-1,-1,750.0); //Rent Car if(BizzInfo[bType] == 11) CreateDynamicMapIcon(BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ],45,0,-1,-1,-1,750.0); //Clothes if(BizzInfo[bType] == 12) CreateDynamicMapIcon(BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ],27,0,-1,-1,-1,750.0); //Gas Station if(BizzInfo[bType] == 13) CreateDynamicMapIcon(BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ],63,0,-1,-1,-1,750.0); //PNS if(BizzInfo[bType] == 14) CreateDynamicMapIcon(BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ],14,0,-1,-1,-1,750.0); //Cluckin Bell } printf("Bussines: %d", bussines); return 1; } Imagini / Video (optional):nu am Ati incercat sa rezolvati singur?:da
  2. Problema intalnita (descriere):nu mise salveaza corect in baza de date deci cand isi face cineva cont imi da cu eroare ce as-i putea sa fac ca-sa scap de asemenea problemaEro(area / rile) / warning-(ul / urile):Liniile de cod / sursa / script-ul(obligatoriu):22:47:55] Error ID: 2013, Error: Lost connection to MySQL server during query [22:47:55] Callback: [22:47:55] gQuery: INSERT INTO `users` (`name`,`password`) VALUES ('Alexander23','flo1') [22:47:55] ==================================================================== [22:48:04] Quitbot: Alexander23 left the game (quit). [22:48:04] Quitbot: Alexander23 left the game (quit). [22:48:04] [part] Alexander23 has left the server (0:1) [22:48:29] [connection] 188.26.79.249:62087 requests connection cookie. [22:48:30] [connection] incoming connection: 188.26.79.249:62087 id: 0 [22:48:31] [join] Alexander231 has joined the server (0:188.26.79.249) [22:48:39] Alexander231 has been connected to the server (IP: 188.26.79.249). [22:48:45] New account: Alexander231 (0) / [user: 45] / [IP: 188.26.79.249] / [email: [email protected]]. [22:48:45] New account: Alexander231 (0) / [user: 45] / [IP: 188.26.79.249] / [email: [email protected]]. [22:48:51] [chat] [Alexander231]: s [22:48:56] [part] Alexander231 has left the server (0:1) [00:00:55] ==================================================================== [00:00:55] Error ID: 2013, Error: Lost connection to MySQL server during query [00:00:55] Callback: [00:00:55] gQuery: UPDATE `factions` SET `Bank`='0' WHERE `ID`='0' [00:00:55] ==================================================================== [01:00:30] ==================================================================== [01:00:30] Error ID: 2013, Error: Lost connection to MySQL server during query [01:00:30] Callback: [01:00:30] gQuery: UPDATE `factions` SET `Bank`='0' WHERE `ID`='0' [01:00:30] ==================================================================== [02:00:06] ==================================================================== [02:00:06] Error ID: 2013, Error: Lost connection to MySQL server during query [02:00:06] Callback: [02:00:06] gQuery: UPDATE `factions` SET `Bank`='0' WHERE `ID`='0' [02:00:06] ==================================================================== [03:00:45] ==================================================================== [03:00:45] Error ID: 2013, Error: Lost connection to MySQL server during query [03:00:45] Callback: [03:00:45] gQuery: UPDATE `factions` SET `Bank`='0' WHERE `ID`='0' [03:00:45] ==================================================================== [04:00:23] ==================================================================== [04:00:23] Error ID: 2013, Error: Lost connection to MySQL server during query [04:00:23] Callback: [04:00:23] gQuery: UPDATE `factions` SET `Bank`='0' WHERE `ID`='0' [04:00:23] ==================================================================== [05:00:01] ==================================================================== [05:00:01] Error ID: 2013, Error: Lost connection to MySQL server during query [05:00:01] Callback: [05:00:01] gQuery: UPDATE `factions` SET `Bank`='0' WHERE `ID`='0' [05:00:01] ==================================================================== [06:00:41] ==================================================================== [06:00:41] Error ID: 2013, Error: Lost connection to MySQL server during query [06:00:41] Callback: [06:00:41] gQuery: UPDATE `factions` SET `Bank`='0' WHERE `ID`='0' [06:00:41] ==================================================================== [07:00:18] ==================================================================== [07:00:18] Error ID: 2013, Error: Lost connection to MySQL server during query [07:00:18] Callback: [07:00:18] gQuery: UPDATE `factions` SET `Bank`='0' WHERE `ID`='0' [07:00:18] ==================================================================== [08:00:58] ==================================================================== [08:00:58] Error ID: 2013, Error: Lost connection to MySQL server during query [08:00:58] Callback: [08:00:58] gQuery: UPDATE `factions` SET `Bank`='0' WHERE `ID`='0' [08:00:58] ==================================================================== [09:00:35] ==================================================================== [09:00:35] Error ID: 2013, Error: Lost connection to MySQL server during query [09:00:35] Callback: [09:00:35] gQuery: UPDATE `factions` SET `Bank`='0' WHERE `ID`='0' [09:00:35] ==================================================================== [10:00:09] ==================================================================== [10:00:09] Error ID: 2013, Error: Lost connection to MySQL server during query [10:00:09] Callback: [10:00:09] gQuery: UPDATE `factions` SET `Bank`='0' WHERE `ID`='0' [10:00:09] ==================================================================== [11:00:43] ==================================================================== [11:00:43] Error ID: 2013, Error: Lost connection to MySQL server during query [11:00:43] Callback: [11:00:43] gQuery: UPDATE `factions` SET `Bank`='0' WHERE `ID`='0' [11:00:43] ==================================================================== [12:00:16] ==================================================================== [12:00:16] Error ID: 2013, Error: Lost connection to MySQL server during query [12:00:16] Callback: [12:00:16] gQuery: UPDATE `factions` SET `Bank`='0' WHERE `ID`='0' [12:00:16] ==================================================================== [13:00:49] ==================================================================== [13:00:49] Error ID: 2013, Error: Lost connection to MySQL server during query [13:00:49] Callback: [13:00:49] gQuery: UPDATE `factions` SET `Bank`='0' WHERE `ID`='0' [13:00:49] ==================================================================== [14:00:20] ==================================================================== [14:00:20] Error ID: 2013, Error: Lost connection to MySQL server during query [14:00:20] Callback: [14:00:20] gQuery: UPDATE `factions` SET `Bank`='0' WHERE `ID`='0' [14:00:20] ==================================================================== [15:00:51] ==================================================================== [15:00:51] Error ID: 2013, Error: Lost connection to MySQL server during query [15:00:51] Callback: [15:00:51] gQuery: UPDATE `factions` SET `Bank`='0' WHERE `ID`='0' [15:00:51] ==================================================================== [15:03:27] [connection] 89.137.233.54:58950 requests connection cookie. [15:03:28] [connection] incoming connection: 89.137.233.54:58950 id: 0 [15:03:29] [warning] dropping a split packet from client [15:03:30] [warning] dropping a split packet from client [15:03:31] [warning] dropping a split packet from client [15:03:32] [warning] dropping a split packet from client [15:03:33] [connection] incoming connection: 89.137.233.54:58951 id: 1 [15:03:33] [join] Ax.Gaby has joined the server (1:89.137.233.54) [15:03:49] Ax.Gaby has been connected to the server (IP: 89.137.233.54). [15:04:10] New account: Ax.Gaby (1) / [user: 46] / [IP: 89.137.233.54] / [email: ]. [15:04:10] New account: Ax.Gaby (1) / [user: 46] / [IP: 89.137.233.54] / [email: ]. [15:08:57] [part] Ax.Gaby has left the server (1:1) [16:00:21] ==================================================================== [16:00:21] Error ID: 2013, Error: Lost connection to MySQL server during query [16:00:21] Callback: [16:00:21] gQuery: UPDATE `factions` SET `Bank`='0' WHERE `ID`='0' [16:00:21] ==================================================================== [17:00:52] ==================================================================== [17:00:52] Error ID: 2013, Error: Lost connection to MySQL server during query [17:00:52] Callback: [17:00:52] gQuery: UPDATE `factions` SET `Bank`='0' WHERE `ID`='0' [17:00:52] ==================================================================== Imagini / Video (optional):Ati incercat sa rezolvati singur?: da
  3. baza de date ruleaza bine si nu am cu printf( sa imi apare mesaje la baza de date poare o fi de-la sscanf warning: Strings without a length are deprecated, please add a destination size.
  4. la public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) doar atata am i f(PlayerInfo[playerid][pCarLic] < 1) { if(IsABike(vehicleid) || IsAExamen (vehicleid)) { } else { if(TakingLesson[playerid] == 1) { } else { SendClientMessage(playerid,COLOR_GREY, "You don't have a driving license."); ClearAnimations(playerid); } } }
  5. ok deci asa apare ---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3.7-R2, (C)2005-2015 SA-MP Team [22:12:03] [22:12:03] Server Plugins [22:12:03] -------------- [22:12:03] Loading plugin: crashdetect.so [22:12:03] CrashDetect v4.15.1 is OK. [22:12:03] Loaded. [22:12:03] Loading plugin: streamer.so [22:12:03] *** Streamer Plugin v2.7.9 by Incognito loaded *** [22:12:03] Loaded. [22:12:03] Loading plugin: sscanf.so [22:12:03] [22:12:03] =============================== [22:12:03] sscanf plugin loaded. [22:12:03] Version: 2.8.1 [22:12:03] (c) 2012 Alex "Y_Less" Cole [22:12:03] =============================== [22:12:03] Loaded. [22:12:03] Loading plugin: mysql_5.5.so [22:12:03] >> plugin.mysql: R34 successfully loaded. [22:12:03] Loaded. [22:12:03] Loading plugin: mysql.so [22:12:03] >> plugin.mysql: R38 successfully loaded. [22:12:03] Loaded. [22:12:03] Loading plugin: profiler.so [22:12:03] Profiler v2.10.4 is OK. [22:12:03] Loaded. [22:12:03] Loading plugin: mysql_static.so [22:12:03] >> plugin.mysql: R34 successfully loaded. [22:12:03] Loaded. [22:12:03] Loaded 7 plugins. [22:12:03] [22:12:03] Filterscripts [22:12:03] --------------- [22:12:03] Loading filterscript 'Harta.amx'... [22:12:03] ============================================================= [22:12:03] FilterScript Loaded By Andu 1886 Objects [22:12:03] ============================================================= [22:12:03] Loaded 1 filterscripts. [22:12:03] Turfs: 48 [22:12:03] 3395 - Objects. [22:12:03] 19 - Pickups. [22:12:03] OnGameModeInit Loaded [22:12:03] Script Loaded - Andu & Shower. FiveGame RPG v4.1.0 [22:12:03] Number of vehicle models: 120 [22:12:03] Houses: 102 [22:12:03] [debug] Run time error 4: "Array index out of bounds" [22:12:03] [debug] Accessing element at index 55 past array upper bound 54 [22:12:03] [debug] AMX backtrace: [22:12:03] [debug] #0 000b7160 in public LoadBizz () from FiveGame.amx [22:12:03] [debug] public LoadDynamicFactions() [22:12:03] Dynamic Factions: 14 [22:12:03] Clans: 1 [22:12:03] Cars: 37 [22:12:03] Stocks: 101 [22:13:11] [connection] 46.102.90.106:56300 requests connection cookie. [22:13:12] [connection] incoming connection: 46.102.90.106:56300 id: 0 [22:13:12] [join] Andu has joined the server (0:46.102.90.106) [22:13:25] HelloBot: Andu has just logged in. [22:13:25] HelloBot: Andu has just logged in. [22:13:25] HelloBot: Andu has just logged in. [22:13:25] HelloBot: Andu has just logged in. [22:13:25] Andu has been connected to the server (IP: 46.102.90.106). [22:13:46] [debug] Server crashed while executing FiveGame.amx [22:13:46] [debug] AMX backtrace: [22:13:46] [debug] #0 0000000c in public OnPlayerEnterVehicle (0, 401, 0) from FiveGame.amx ok intradevar la public OnPlayerEnterVehicle era o problema nu era pus bine } return 1; dar am facut uploade si tot asa patesc cand pornesc motorul se restarteaza serverul [22:21:16] Andu has been connected to the server (IP: 46.102.90.106). [22:21:24] [debug] Server crashed while executing FiveGame.amx [22:21:24] [debug] AMX backtrace: [22:21:24] [debug] #0 0000000c in public OnPlayerEnterVehicle (0, 401, 0) from FiveGame.amx
  6. pai daca bag crashdetect.so Loading plugin: crashdetect.so [21:59:02] CrashDetect must be loaded before 'streamer.so' si imi da si la Loading plugin: crashdetect.so [21:59:02] CrashDetect must be loaded before 'profiler.so si imi inchide si serverul
  7. Problema intalnita (descriere):am un bug la vehicles adica la masinile personale cand apas 2 sa imi pornesc motorul sau sa dau rfv sau park imi da restart le server Ero(area / rile) / warning-(ul / urile):nu am erori dar ma gandesc ca decand am scos Liniile de cod / sursa / script-ul(obligatoriu):public OnQueryError( errorid, error[ ], callback[ ], query[ ], connectionHandle ) { print( "====================================================================" ); printf( "Error ID: %d, Error: %s", errorid, error ); printf( "Callback: %s", callback ); printf( "gQuery: %s", query ); print( "====================================================================" ); return 1; } sa nu fie din causa asta problema Imagini / Video (optional):Ati incercat sa rezolvati singur?: da si nu am reusit
  8. fa si tu un uploade la streamer si o-sa mearga
  9. nu mai ma jur iti dau si gm daca vrei sa te convingi am un bug mare si nu stiu de la ce imi provoaca chestia asta
  10. DA ACUM MISE INCHIDE SI MAI DES SERVERUL VAD
  11. mam uitat in toate doar unul singur am scos finca mi-se parea suspect
  12. nu mai inteleg nimic nici nu stiu de unde ar putea fi problema mam uitat peste tot si OnPlayerEnterVehicle nici macar nu este in gamemod
  13. am pus totul ce trebuia si tot mi-sa inchis serverul [debug] Server crashed while executing FiveGame.amx [22:56:48] [debug] AMX backtrace: [22:56:48] [debug] #0 0000000c in public OnPlayerEnterVehicle (2, 401, 1) from FiveGame.amx
  14. ok multumesc! ca aveam si anti sql dar degeaba for(new i; i < sizeof(antisqlinjection); i++) { if(strfind(inputtext, antisqlinjection, true) != -1) { SCM(playerid, -1, "Done."); } }
  15. ok si cum pot scapa de acest bug ca nu ma pricep chear asa de bine
  16. nu am in gamemod niciun dialog cu 123 imi mai da niste erori cand isi ea restart la [17:07:21] [debug] Run time error 4: "Array index out of bounds" [17:07:21] [debug] Accessing element at index 55 past array upper bound 54 [17:07:21] [debug] AMX backtrace: [17:07:21] [debug] #0 000b7344 in public LoadBizz () from FiveGame.amx
  17. Problema intalnita (descriere):cred ca am un bug in gm ca la o comanda imi pica serverul si problema e ca in log nu imi apare comanda aia Ero(area / rile) / warning-(ul / urile): Liniile de cod / sursa / script-ul(obligatoriu): [19:03:48] Bobillho[user:29] changed his password. IP: 94.177.142.202[19:03:52] [debug] Server crashed while executing Game.amx[19:03:52] [debug] AMX backtrace:[19:03:52] [debug] #0 native SendClientMessage () from samp03svr[19:03:52] [debug] #1 002767c8 in public OnDialogResponse (0, 132, 1, -1, 26610872) from Game.amx[19:03:52] [debug] Native backtrace:[19:03:52] [debug] #0 f73cde8b in ZN10StackTraceC1EPv () from plugins/crashdetect.so [19:03:52] [debug] #1 f73c6bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so [19:03:52] [debug] #2 f73c7dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so [19:03:52] [debug] #3 f73c8226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so [19:03:52] [debug] #4 f73cdadc in ?? () from plugins/crashdetect.so [19:03:52] [debug] #5 f7721410 in ?? () [19:03:52] [debug] #6 f7439416 in _IO_vfprintf () from /lib/libc.so.6 [19:03:52] [debug] #7 f7458682 in vsprintf () from /lib/libc.so.6 [19:03:52] [debug] #8 080ad731 in ?? () from ./samp03svr [19:03:52] [debug] #9 080d99e9 in ?? () from ./samp03svr [19:03:52] [debug] #10 080950e4 in ?? () from ./samp03svr [19:03:52] [debug] #11 f73c994b in _ZN11CrashDetect13DoAmxCallbackEiPiS0 () from plugins/crashdetect.so[19:03:52] [debug] #12 f73cc8f8 in ?? () from plugins/crashdetect.so[19:03:52] [debug] #13 f73d0916 in amx_Exec () from plugins/crashdetect.so[19:03:52] [debug] #14 f73c8be6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so[19:03:52] [debug] #15 f73cc659 in ?? () from plugins/crashdetect.so[19:03:52] [debug] #16 f73392ea in ?? () from plugins/streamer.so[19:03:52] [debug] #17 080a682f in ?? () from ./samp03svr[19:03:52] [debug] #18 080b2c44 in ?? () from ./samp03svr[19:03:52] [debug] #19 08071d38 in ?? () from ./samp03svr[19:03:52] [debug] #20 08071e32 in ?? () from ./samp03svr[19:03:52] [debug] #21 0807bc50 in ?? () from ./samp03svr[19:03:52] [debug] #22 080aed3d in ?? () from ./samp03svr[19:03:52] [debug] #23 080aef02 in ?? () from ./samp03svr[19:03:52] [debug] #24 080aa13a in ?? () from ./samp03svr[19:03:52] [debug] #25 f740b943 in __libc_start_main () from /lib/libc.so.6 Imagini / Video (optional): Ati incercat sa rezolvati singur?:da
  18. public OnPlayerStateChange(playerid, newstate, oldstate) { new string[500], vehicleid = GetPlayerVehicleID(playerid); if( newstate == PLAYER_STATE_ONFOOT && oldstate == PLAYER_STATE_PASSENGER) { StopAudioStreamForPlayer(playerid); } if(newstate == PLAYER_STATE_ONFOOT) { PlayerTextDrawHide(playerid, Fuell[playerid]); PlayerTextDrawHide(playerid, Speedd[playerid]); PlayerTextDrawHide(playerid, Odom[playerid]); PlayerTextDrawHide(playerid, carlocked[playerid]); if(IsCollectingRubbish[playerid] > 0) { DisablePlayerCheckpoint(playerid); PlayerInfo[playerid][pGarbageTime] = 0; IsCollectingRubbish[playerid] = 0; PlayerTextDrawHide(playerid, gunoierr[playerid]); } if(pizzaj[playerid] == 1) { failpizza[playerid] = 120; } if(HireCar[playerid] != -1) { timerrent[playerid] = 900; } if(RentVeh[playerid] != -1) { VehicleRent[RentVeh[playerid]] = -1; RentTime[playerid] = 0; TotalTimeRent[playerid] = 0; RentVeh[playerid] = -1; KillTimer(RentTimerr[playerid]); PlayerTextDrawHide(playerid, RentCar[playerid]); } if(farmerc[playerid] == 1) { farmerc[playerid] = 0; farmertime[playerid] = 1; PlayerTextDrawHide(playerid, farmjob[playerid]); PlayerTextDrawHide(playerid, farmbox[playerid]); PlayerTextDrawHide(playerid, farmtime[playerid]); PlayerTextDrawHide(playerid, farmspeed[playerid]); PlayerTextDrawHide(playerid, farmwanted[playerid]); KillTimer(timerfarmm[playerid]); } if(CarJacker[playerid] > 0) { DisablePlayerCheckpoint(playerid); CarJacker[playerid] = 0; JackAcc[playerid] = 0; } if(Trucker2[playerid] == 1) { Trucker2[playerid] = 0; DisablePlayerCheckpoint(playerid); } if(Trucker[playerid] >= 1) { RemovePlayerFromVehicle(playerid); restruck[playerid] = SetTimerEx("RespawnTruck", 1, 0, "i",playerid); RemovePlayerFromVehicle(playerid); Trucker[playerid] = 0; Trucker2[playerid] = 0; DestroyVehicle(viddd[playerid]); viddd[playerid] = 0; SetVehicleToRespawn(TruckID[playerid]); TruckID[playerid] = 0; DisablePlayerCheckpoint(playerid); restruck[playerid] = SetTimerEx("RespawnTruck", 1, 0, "i",playerid); } if(CP[playerid] == 340 || CP[playerid] == 341 || CP[playerid] == 342 || CP[playerid] == 343 || CP[playerid] == 344 || CP[playerid] == 345 || CP[playerid] == 346 || CP[playerid] == 347) { DisablePlayerCheckpoint(playerid); CP[playerid] = 0; } if(CP[playerid] == 34) { TowAcc[playerid] = 1; CP[playerid] = 0; DisablePlayerCheckpoint(playerid); SetTimerEx("TowAgain", 120000, 0, "i", playerid); } if(TransportDuty[playerid] > 0) { if(TransportDuty[playerid] == 1) { TaxiDrivers -= 1; } TransportDuty[playerid] = 0; format(string, sizeof(string), "* You are now Off Duty and earned $%d.", TransportMoney[playerid]); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); GivePlayerCash(playerid, TransportMoney[playerid]); ConsumingMoney[playerid] = 1; TransportValue[playerid] = 0; TransportMoney[playerid] = 0; } if(TransportCost[playerid] > 0 && TransportDriver[playerid] < 999) { if(IsPlayerConnected(TransportDriver[playerid])) { new sendername[30],giveplayer[30]; GetPlayerName(playerid,sendername,sizeof(sendername)); GetPlayerName(TransportDriver[playerid],giveplayer,sizeof(giveplayer)); TransportMoney[TransportDriver[playerid]] += TransportCost[playerid]; TransportTime[TransportDriver[playerid]] = 0; TransportCost[TransportDriver[playerid]] = 0; format(string, sizeof(string), "~w~The ride cost~n~~r~~h~$%d",TransportCost[playerid]); GameTextForPlayer(playerid, string, 5000, 1); format(string, sizeof(string), "~w~Passenger left the taxi~n~~g~Earned $%d",TransportCost[playerid]); GameTextForPlayer(TransportDriver[playerid], string, 5000, 1); PlayerInfo[playerid][pCommands]++; Update(playerid,pCommandsx); new str[256]; mysql_format(SQL,str,sizeof(str),"UPDATE users SET `Commands`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pCommands],PlayerInfo[playerid][pNormalName]); mysql_tquery(SQL,str,"",""); format(string, sizeof(string), "# %s gets off the cab and pays $%s to %s.",sendername,FormatNumber(TransportCost[playerid]),giveplayer); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, -TransportCost[playerid]); TransportCost[playerid] = 0; TransportTime[playerid] = 0; TransportDriver[playerid] = 999; Update(playerid, pCashx); } } TelePos[playerid][0] = 0.0; TelePos[playerid][1] = 0.0; } if(newstate == PLAYER_STATE_WASTED) { StopAudioStreamForPlayer(playerid); if(PlayerInfo[playerid][pWantedLevel] >= 1) { new copkill=0, price = PlayerInfo[playerid][pWantedLevel] * 1000, str23[MAX_STRING], totalprice = price / 2, string3[256], string4[256], lastname[30]; if((PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pMember] != 2 && PlayerInfo[playerid][pMember] != 3 && PlayerInfo[playerid][pMember] != 8)) { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(IsACop(i) && CrimInRange(50.0, playerid,i) && OnDuty == 1) { if(GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid)) { new streap[MAX_PLAYER_NAME]; GetPlayerName(playerid, streap, sizeof(streap)); GetPlayerName(i, lastname, sizeof(lastname)); format(string3, sizeof(string3), "Ai primit $%d bonus pentru prinderea suspectului %s.", totalprice, streap); SendClientMessage(i, COLOR_DBLUE, string3); GameTextForPlayer(i, "Running Suspect bonus!", 5000, 1); ConsumingMoney = 1; PlayerInfo[playerid][pCommands]++; Update(playerid,pCommandsx); new str[256]; mysql_format(SQL,str,sizeof(str),"UPDATE users SET `Commands`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pCommands],PlayerInfo[playerid][pNormalName]); mysql_tquery(SQL,str,"",""); GivePlayerCash(i, price); Update(i, pCashx); new idfac = PlayerInfo[pMember]; DynamicFactions[idfac][fBank] += totalprice; mysql_format(SQL,str23,sizeof(str23),"UPDATE `factions` SET `Bank`='%d' WHERE `ID`='%d'", DynamicFactions[idfac][fBank], idfac); mysql_tquery(SQL,str23,"",""); PlayerPlaySound(i, 1058, 0.0, 0.0, 0.0); copkill = 1; } } } } if(copkill == 1) { PlayerInfo[playerid][pJailTime] = (PlayerInfo[playerid][pWantedLevel])*(300); format(string4, sizeof(string4), "Because you got killed, you lost $%s and you will be taken to jail. You are no longer a criminal.", FormatNumber(price)); SendClientMessage(playerid, COLOR_LIGHTRED, string4); PlayerInfo[playerid][pJailed] = 1; PlayerInfo[playerid][pWantedLevel] = 0; PlayerInfo[playerid][pWantedDeaths] += 1; WantedPoints[playerid] = 0; GivePlayerCash(playerid, - price); new streap[30]; GetPlayerName(playerid, streap, sizeof(streap)); format(string3, sizeof(string3), "Dispatch: %s has been killed by No One and will be in jail for %d seconds, over.",streap,PlayerInfo[playerid][pJailTime]); SendTeamMessage(1, COLOR_LIGHTBLUE, string3); SendTeamMessage(2, COLOR_LIGHTBLUE, string3); SendTeamMessage(3, COLOR_LIGHTBLUE, string3); SendTeamMessage(8, COLOR_LIGHTBLUE, string3); Update(playerid,pWantedLevelx); Update(playerid,pJailedx); Update(playerid,pJailTimex); ClearCrime(playerid); TogglePlayerControllable(playerid, 0); SetTimerEx("UnFreezeStation", 1000, false, "i", playerid); } } } } if(newstate == PLAYER_STATE_PASSENGER) // TAXI & BUSSES { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); if(vehRadio[vehicleid] > 0) { if(vehRadio[vehicleid] == 1) { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=151778"); } else if(vehRadio[vehicleid] == 2) { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://stream.profm.ro:8012/profm.mp3"); } else if(vehRadio[vehicleid] == 3) { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://radiotaraf.no-ip.biz:7100"); } else if(vehRadio[vehicleid] == 4) { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://radiobandit.mine.nu:8000"); } else if(vehRadio[vehicleid] == 5) { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://radiohotstyle.dyndns.biz:8000"); } else if(vehRadio[vehicleid] == 6) { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://www.radiodiz.com/livediz.m3u"); } else if(vehRadio[vehicleid] == 7) { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://necenzurat.radiotequila.ro:7000"); } else if(vehRadio[vehicleid] > 7) { StopAudioStreamForPlayer(playerid); } } foreach(Player,i) { if(IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == 2 && TransportDuty > 0) { if(GetPlayerCash(playerid) < TransportValue) { format(string, sizeof(string), "* You need $%d to enter.", TransportValue); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); RemovePlayerFromVehicle(playerid); } else { if(TransportDuty == 1) { format(string, sizeof(string), "* You paid $%d to the Taxi Driver.", TransportValue); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Passenger %s has entered your Taxi.", name); SendClientMessage(i, COLOR_LIGHTBLUE, string); PlayerInfo[playerid][pCommands]++; Update(playerid,pCommandsx); new str[256]; mysql_format(SQL,str,sizeof(str),"UPDATE users SET `Commands`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pCommands],PlayerInfo[playerid][pNormalName]); mysql_tquery(SQL,str,"",""); TransportTime = 1; TransportTime[playerid] = 1; TransportCost[playerid] = TransportValue; TransportCost = TransportValue; TransportDriver[playerid] = i; } else if(TransportDuty == 2) { format(string, sizeof(string), "* You paid $%d to the Bus Driver.", TransportValue); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Passenger %s has entered your Bus.", name); SendClientMessage(i, COLOR_LIGHTBLUE, string); } GivePlayerCash(playerid, - TransportValue); TransportMoney += TransportValue; Update(playerid, pCashx); } } } new gun,tmp; GetPlayerWeaponData(playerid,5,gun,tmp); #pragma unused tmp if(gun)SetPlayerArmedWeapon(playerid,gun); else SetPlayerArmedWeapon(playerid,0); return 1; } if(oldstate == PLAYER_STATE_DRIVER) { StopAudioStreamForPlayer(playerid); if((GetTickCount()-PlayerEnterTime[playerid]) < 220) { new anticar[300]; format(anticar, sizeof(anticar), "(N) %s (%d, level %d) may be using vehicle teleport (Car Circle, Floating cars etc).",GetName(playerid),playerid,PlayerInfo[playerid][pLevel]); ABroadCast(COLOR_RED,anticar,1); } return 1; } if(newstate == PLAYER_STATE_DRIVER) { if(vehRadio[vehicleid] == 1) { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=151778"); } else if(vehRadio[vehicleid] == 2) { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://stream.profm.ro:8012/profm.mp3"); } else if(vehRadio[vehicleid] == 3) { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://radiotaraf.no-ip.biz:7100"); } else if(vehRadio[vehicleid] == 4) { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://radiobandit.mine.nu:8000"); } else if(vehRadio[vehicleid] == 5) { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://radiohotstyle.dyndns.biz:8000"); } else if(vehRadio[vehicleid] == 6) { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://www.radiodiz.com/livediz.m3u"); } else if(vehRadio[vehicleid] == 7) { StopAudioStreamForPlayer(playerid); PlayAudioStreamForPlayer(playerid, "http://necenzurat.radiotequila.ro:7000"); } else if(vehRadio[vehicleid] > 7) { StopAudioStreamForPlayer(playerid); } new newcar = GetPlayerVehicleID(playerid); if(!IsABoat(newcar)) { PlayerEnterTime[playerid] = GetTickCount(); } TelePos[playerid][0] = 0.0; TelePos[playerid][1] = 0.0; new engine,lights,alarm,doors,bonnet,boot,objective; if(vehEngine[newcar] == 0) { GetVehicleParamsEx(newcar,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(newcar,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective); } else if(vehEngine[newcar] == 1) { GetVehicleParamsEx(newcar,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(newcar,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective); } if(Gas[newcar] == 0) { TogglePlayerControllable(playerid, 0); NoFuel[playerid] = 1; } if(Trucker[playerid] >= 1) { KillTimer(restruck[playerid]); } if(IsABoat(newcar)) { if(PlayerInfo[playerid][pBoatLic] < 1) { if(TakingLesson[playerid] == 2) { } else { SendClientMessage(playerid,COLOR_GREY, "You don't have a boat license."); RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); } } } else if(IsAPlane(newcar)) { if(PlayerInfo[playerid][pFlyLic] < 1) { if(TakingLesson[playerid] == 2) { } else { SendClientMessage(playerid, COLOR_GREY, "You don't have a flying license."); RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); } } } else { if(PlayerInfo[playerid][pCarLic] < 1) { if(IsABike(newcar) || IsAPlane(newcar) || GetVehicleModel(newcar) == 462) { } else { if(TakingLesson[playerid] == 1) { } else { SendClientMessage(playerid,COLOR_GREY, "You don't have a driving license."); RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); SetTimerEx("UnFreezeStation", 500, 0, "i", playerid); } } } }//Done with car check if(IsABike(newcar)) { TogglePlayerControllable(playerid, 1); vehEngine[vehicleid] = 1; GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective); } if(IsACopCar(newcar)) { if(IsACop(playerid) && OnDuty[playerid] == 1) { } else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid,COLOR_WHITE, "{999999}Nu esti ca politist la datorie. [ON DUTY]"); } } if(newcar == Copcar[6] || newcar == Copcar[7] || newcar == Copcar[18] || newcar == Copcar[19]) { if(IsACop(playerid)) { if(OnDuty[playerid] == 1) { if(PlayerInfo[playerid][pRank] < 3) { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid,COLOR_WHITE, "{999999}You don't have rank 3."); } } else { SendClientMessage(playerid,COLOR_WHITE, "{999999}Nu esti ca politist la datorie. [ON DUTY]"); } } } if(newcar == Copcar[1] || newcar == Copcar[2] || newcar == Copcar[3] || newcar == Copcar[14] || newcar == Copcar[29]) { if(IsACop(playerid)) { if(OnDuty[playerid] == 1) { if(PlayerInfo[playerid][pRank] < 2) { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid,COLOR_WHITE, "{999999}You don't have rank 2."); } } else { SendClientMessage(playerid,COLOR_WHITE, "{999999}Nu esti ca politist la datorie. [ON DUTY]"); } } } if(newcar == Copcar[30] || newcar == Copcar[19]) { if(IsACop(playerid)) { if(OnDuty[playerid] == 1) { if(PlayerInfo[playerid][pRank] < 4) { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid,COLOR_WHITE, "{999999}You don't have rank 4."); } } else { SendClientMessage(playerid,COLOR_WHITE, "{999999}Nu esti ca politist la datorie. [ON DUTY]"); } } } if(IsAFbiCar(newcar)) { if(IsACop(playerid)) { } else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid,COLOR_WHITE, "{999999}You are not a Cop. !"); } } if(IsALVPDCar(newcar)) { if(IsACop(playerid)) { } else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid,COLOR_WHITE, "{999999}You are not a Cop. !"); } } if(IsANgCar(newcar)) { if(IsACop(playerid)) { } else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid,COLOR_WHITE, "{999999}You are not a Cop."); } } else if(IsAnAmbulance(newcar)) { if(PlayerInfo[playerid][pMember] == 14) { } else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid,COLOR_WHITE, "{999999}You are not a Paramedic.");} } if(IsAGarbageTruck(newcar))//garbagejob { if(PlayerInfo[playerid][pJob] == 10) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "INFO: You can collect rubbish for a pay check."); SendClientMessage(playerid, COLOR_WHITE, "INFO: Type /collect to get started"); } else { SendClientMessage(playerid, COLOR_WHITE, "You are not a Garbage Collector."); RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); } } if(IsATruck(newcar)) { if(PlayerInfo[playerid][pJob] == 14) { if(Trucker2[playerid] == 0 && viddd[playerid] == 0) { Trucker2[playerid] = 1; SetPlayerCheckpoint(playerid,-54.6322,-1461.7084,6.8239,5.0); SendClientMessage(playerid, COLOR_WHITE, "{FEC3AC}Mergi la checkpoint pentru a incepe munca."); TruckID[playerid] = GetPlayerVehicleID(playerid); } return 1; } else { SendClientMessage(playerid, COLOR_WHITE, "{999999}You are not a Trucker."); RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); } } if(newcar == bus[1] || newcar == bus[2] || newcar == bus[3] || newcar == bus[4] || newcar == bus[5] || newcar == bus[6] || newcar == bus[7] || newcar == bus[8] || newcar == bus[9] || newcar == bus[10] || newcar == bus[11] || newcar == bus[12] || newcar == bus[13] || newcar == bus[14] || newcar == bus[15] || newcar == bus[16]) { if(PlayerInfo[playerid][pJob] == 7) { PlayerTextDrawShow(playerid, BusJob[playerid]); format(string,sizeof(string),"~w~CHECKPOINTS: ~r~0~w~/~r~59"); PlayerTextDrawSetString(playerid, BusCheck[playerid], string); PlayerTextDrawShow(playerid, BusCheck[playerid]); SendClientMessage(playerid, COLOR_WHITE, "Mergi la checkpoint."); busc[playerid] = 1; CheckBus[playerid] = 1; SetPlayerRaceCheckpoint(playerid, 0, 1693.2972,-2197.6602,13.4714,1941.3706,-2169.2083,13.4851,4.0); } else { SendClientMessage(playerid,COLOR_WHITE,"{999999}You are not a Bus Driver."); RemovePlayerFromVehicle(playerid); } } if(newcar == pizza[1] || newcar == pizza[2] || newcar == pizza[3] || newcar == pizza[4] || newcar == pizza[5] || newcar == pizza[6] || newcar == pizza[7] || newcar == pizza[8] || newcar == pizza[9] || newcar == pizza[10] || newcar == pizza[11] || newcar == pizza[12] || newcar == pizza[13] || newcar == pizza[14]) { if(PlayerInfo[playerid][pJob] == 5) { failpizza[playerid] = -1; } else { SendClientMessage(playerid,COLOR_WHITE,"{999999}You are not a Pizza Boy."); RemovePlayerFromVehicle(playerid); } } if(newcar == towcar[1] || newcar == towcar[2] || newcar == towcar[3] || newcar == towcar[4] || newcar == towcar[5]) { if(PlayerInfo[playerid][pJob] == 8) { } else { SendClientMessage(playerid,COLOR_WHITE,"{999999}You are not a mechanic."); RemovePlayerFromVehicle(playerid); } } if(newcar == taxic[1] || newcar == taxic[2] || newcar == taxic[3] || newcar == taxic[4] || newcar == taxic[5] || newcar == taxic[6] || newcar == taxic[7] || newcar == taxic[8] || newcar == taxic[9] || newcar == taxic[10]) { if(PlayerInfo[playerid][pMember] == 13||PlayerInfo[playerid][pLeader] == 13) { } else { SendClientMessage(playerid,COLOR_WHITE,"{999999}You are not a Los Santos Taxi member."); RemovePlayerFromVehicle(playerid); } } if(newcar == taxic[6] || newcar == taxic[7]) { if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13) { if(PlayerInfo[playerid][pRank] > 2) { } else { SendClientMessage(playerid,COLOR_WHITE,"{999999}You don't have rank 3."); RemovePlayerFromVehicle(playerid); } } else { SendClientMessage(playerid,COLOR_WHITE,"{999999}You are not a Los Santos Taxi member or you don't have rank 3."); RemovePlayerFromVehicle(playerid); } } if(newcar == Aztecasc[1] || newcar == Aztecasc[2] || newcar == Aztecasc[3] || newcar == Aztecasc[4] || newcar == Aztecasc[5] || newcar == Aztecasc[6] || newcar == Aztecasc[7] || newcar == Aztecasc[8] || newcar == Aztecasc[9] || newcar == Aztecasc[10] || newcar == Aztecasc[11] || newcar == Aztecasc[12] || newcar == Aztecasc[13] || newcar == Aztecasc[14]) { if(PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4) { } else { SendClientMessage(playerid,COLOR_WHITE,"{999999}You are not a Los Aztecas member."); RemovePlayerFromVehicle(playerid); } } if(newcar == Grovec[1] || newcar == Grovec[2] || newcar == Grovec[3] || newcar == Grovec[4] || newcar == Grovec[5] || newcar == Grovec[6] || newcar == Grovec[7] || newcar == Grovec[8] || newcar == Grovec[9] || newcar == Grovec[10] || newcar == Grovec[11] || newcar == Grovec[12]) { if(PlayerInfo[playerid][pMember] == 5||PlayerInfo[playerid][pLeader] == 5) { } else { SendClientMessage(playerid,COLOR_WHITE,"{999999}You are not a Grove Street member."); RemovePlayerFromVehicle(playerid); } } if(newcar == Vagosc[1] || newcar == Vagosc[2] || newcar == Vagosc[3] || newcar == Vagosc[4] || newcar == Vagosc[5] || newcar == Vagosc[6] || newcar == Vagosc[7] || newcar == Vagosc[8] || newcar == Vagosc[9] || newcar == Vagosc[10] || newcar == Vagosc[11]) { if(PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6) { } else { SendClientMessage(playerid,COLOR_WHITE,"{999999}You are not a Los Vagos member."); RemovePlayerFromVehicle(playerid); } } if(newcar == Ballasc[1] || newcar == Ballasc[2] || newcar == Ballasc[3] || newcar == Ballasc[4] || newcar == Ballasc[5] || newcar == Ballasc[6] || newcar == Ballasc[7] || newcar == Ballasc[8] || newcar == Ballasc[9] || newcar == Ballasc[10] || newcar == Ballasc[11] || newcar == Ballasc[12] || newcar == Ballasc[13] || newcar == Ballasc[14]) { if(PlayerInfo[playerid][pMember] == 10||PlayerInfo[playerid][pLeader] == 10) { } else { SendClientMessage(playerid,COLOR_WHITE,"{999999}You are not a Ballas member."); RemovePlayerFromVehicle(playerid); } } if(newcar == thea[1] || newcar == thea[2] || newcar == thea[3] || newcar == thea[4] || newcar == thea[5] || newcar == thea[6] || newcar == thea[7] || newcar == thea[8] || newcar == thea[9] || newcar == thea[10] || newcar == thea[11] || newcar == thea[12] || newcar == thea[13] || newcar == thea[14] || newcar == thea[15] || newcar == thea[16]) { if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11) { } else { SendClientMessage(playerid, COLOR_WHITE,"{999999}You are not a Hitman."); RemovePlayerFromVehicle(playerid); } } if(newcar == helpercars[1] || newcar == helpercars[2] || newcar == helpercars[3] || newcar == helpercars[4] || newcar == helpercars[5]) { if(PlayerInfo[playerid][pHelper] >= 1) { } else { SendClientMessage(playerid, COLOR_WHITE,"{999999}You are not a Helper."); RemovePlayerFromVehicle(playerid); } } if(newcar == admincars[1] || newcar == admincars[2] || newcar == admincars[3] || newcar == admincars[4] || newcar == admincars[5]) { if(PlayerInfo[playerid][pAdmin] >= 1) { } else { SendClientMessage(playerid, COLOR_WHITE,"{999999}You are not a Admin."); RemovePlayerFromVehicle(playerid); } } if(newcar == si[1] || newcar == si[2] || newcar == si[3] || newcar == si[4] || newcar == si[5] || newcar == si[6] || newcar == si[7] || newcar == si[8] || newcar == si[9] || newcar == si[10] || newcar == si[11] || newcar == si[12] || newcar == si[13]) { if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || TakingLesson[playerid] == 2) { } else { SendClientMessage(playerid, COLOR_WHITE,"{999999}You are not a School Instructors or your don't have active leasson."); RemovePlayerFromVehicle(playerid); } } if(newcar == si[12] || newcar == si[13]) { if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) { if(PlayerInfo[playerid][pRank] < 2) { SendClientMessage(playerid, COLOR_WHITE,"{999999}You don't have rank 2."); RemovePlayerFromVehicle(playerid); } } } if(newcar == news[16] || newcar == news[17]) { if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) { if(PlayerInfo[playerid][pRank] < 4) { SendClientMessage(playerid, COLOR_WHITE,"{999999}You don't have rank 4."); RemovePlayerFromVehicle(playerid); } } } if(newcar == farm[1] || newcar == farm[2] || newcar == farm[3] || newcar == farm[4] || newcar == farm[5] || newcar == farm[6] || newcar == farm[7] || newcar == farm[8] || newcar == farm[9] || newcar == farm[10] || newcar == farm[11] || newcar == farm[12] || newcar == farm[13]) { KillTimer(timerfarmm[playerid]); if(AreFaina[playerid] < 1) { if(PlayerInfo[playerid][pJob] == 6) { farmerc[playerid] = 1; farmertime[playerid] = 120; timerfarmm[playerid] = SetTimerEx("SetFarmer", 1000, 1, "i", playerid); Gas[GetPlayerVehicleID(playerid)] = 100; } else { SendClientMessage(playerid, COLOR_WHITE, "{999999}You are not a Farmer."); RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); KillTimer(timerfarmm[playerid]); } } else { SendClientMessage(playerid, COLOR_YELLOW, "Vinde faina inainte de a munci din nou."); RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); KillTimer(timerfarmm[playerid]); } } if(newcar == news[1] || newcar == news[2] || newcar == news[3] || newcar == news[4] || newcar == news[5] || newcar == news[6] || newcar == news[7] || newcar == news[8] || newcar == news[9] || newcar == news[10] || newcar == news[11 || newcar == news[12]] || newcar == news[13] || newcar == news[14] || newcar == news[15] || newcar == news[16] || newcar == news[17]) { if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9){ } else { SendClientMessage(playerid, COLOR_WHITE,"{999999}You are not a News Reporter !"); RemovePlayerFromVehicle(playerid); } } if(newcar == rentls[1] || newcar == rentls[2] || newcar == rentls[3] || newcar == rentls[4] || newcar == rentls[5] || newcar == rentls[6] || newcar == rentls[7] || newcar == rentls[8] || newcar == rentls[9] || newcar == rentlv[1] || newcar == rentlv[2] || newcar == rentlv[3] || newcar == rentlv[4] || newcar == rentlv[5] || newcar == rentlv[6] || newcar == rentlv[7] || newcar == rentlv[8] || newcar == rentlv[9] || newcar == rentlv[10] || newcar == rentlv[11] || newcar == rentlv[12] || newcar == rentlv[13] || newcar == rentlv[14] || newcar == rentlv[15] || newcar == rentlv[16] || newcar == rentlv[17] || newcar == rentlv[18] || newcar == rentlv[19]) { if(GetPlayerCash(playerid) < 20) { SendClientMessage(playerid, COLOR_WHITE,"You don't have enough money."); RemovePlayerFromVehicle(playerid); return 1; } SendClientMessage(playerid, COLOR_WHITE, "Masina inchiriata. Vei plati $20/10 secunde cat timp folosesti masina."); SendClientMessage(playerid, COLOR_WHITE, "Masina va fi respawnata dupa 30 minute daca nu este folosita."); VehicleRent[newcar] = playerid; RentVeh[playerid] = newcar; RentTime[playerid] = 0; TotalTimeRent[playerid] = 0; PlayerTextDrawSetString(playerid, RentCar[playerid], "rentcar cost: ~g~$0"); PlayerTextDrawShow(playerid, RentCar[playerid]); RentTimerr[playerid] = SetTimerEx("RentTimer", 1000, true, "i", playerid); } if(IsAnOwnableCar(newcar)) { if(CarInfo[OwnedVeh(newcar)][cInsurancecar] == 0) { if(personalcar[0][playerid] == newcar || personalcar[1][playerid] == newcar || personalcar[2][playerid] == newcar || personalcar[3][playerid] == newcar || personalcar[4][playerid] == newcar || personalcar[5][playerid] == newcar) { format(string, sizeof(string), "Your vehicle has suffered damage and beacause you don't have insurance you have to pay $%s to fix.", FormatNumber(CarInfo[OwnedVeh(newcar)][cInscarprice])); ShowPlayerDialog(playerid, DIALOG_CARDAMAGE, DIALOG_STYLE_MSGBOX, "\n", string, "Pay", "Cancel"); } else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Can't drive this car until the owner pay the repairs."); } } } if(IsAnOwnableCar(newcar)) { if(CarInfo[OwnedVeh(newcar)][cOwned] == 1) { new VehI = GetPlayerVehicleID(playerid); format(string,sizeof(string),"This %s (ID %d) is owned by %s | Age: %d days | Odometer: %.0f km | Colors: %d, %d | Insurance: $%d (%d points)",CarInfo[OwnedVeh(newcar)][cDescription],CarInfo[OwnedVeh(newcar)][cID],CarInfo[OwnedVeh(newcar)][cOwner],CarInfo[OwnedVeh(newcar)][cDays],CarInfo[OwnedVeh(newcar)][cKM],CarInfo[OwnedVeh(VehI)][cColorOne],CarInfo[OwnedVeh(VehI)][cColorTwo],CarInfo[OwnedVeh(newcar)][cInscarprice],CarInfo[OwnedVeh(newcar)][cInsurancecar]); SendClientMessage(playerid, COLOR_WHITE, string); } } if(IsAnOwnableCar(newcar)) { new stringtext[100]; format(stringtext,sizeof(stringtext),"~r~~h~~h~~h~~h~%s",aVehicleNames[GetVehicleModel(GetPlayerVehicleID(playerid))-400]); GameTextForPlayer(playerid, stringtext, 5000, 1); } if(!IsAnOwnableCar(newcar)) { if(rentls[1] == newcar || rentls[2] == newcar || rentls[3] == newcar || rentls[4] == newcar || rentls[5] == newcar || rentls[6] == newcar || rentls[7] == newcar || rentls[8] == newcar || rentls[9] == newcar) { GameTextForPlayer(playerid, "~g~car rented", 5000, 1); } else { new stringtext[100]; format(stringtext,sizeof(stringtext),"~g~~h~%s",aVehicleNames[GetVehicleModel(GetPlayerVehicleID(playerid))-400]); GameTextForPlayer(playerid, stringtext, 5000, 1); } } gLastCar[playerid] = newcar; gLastDriver[newcar] = playerid; } if(newstate == PLAYER_STATE_SPAWNED) { new Float: lwx, Float:lwy, Float:lwz; GetPlayerPos(playerid, lwx, lwy, lwz); if((lwz > 530.0 && PlayerInfo[playerid][pInt] == 0) || PlayerToPoint(1000.0, playerid, -1041.9,-1868.4,79.1)) //the highest land point in sa = 526.8 { SetPlayerSpawn(playerid); } if(WantedPoints[playerid] > 0) { PlayerInfo[playerid][pWantedDeaths] += 1; } if(PlayerInfo[playerid][pPremiumAccount] == 1) { SetPlayerHealthEx(playerid, 100.0); } TelePos[playerid][0] = 0.0; TelePos[playerid][1] = 0.0; gPlayerSpawned[playerid] = 1; SafeTime[playerid] = 60; } return 1; } cam asta am
  19. Problema intalnita (descriere):ma sui in heli si ma scoate afara miam dat si licenta de flying tot degeabaEro(area / rile) / warning-(ul / urile):Liniile de cod / sursa / script-ul(obligatoriu):Imagini / Video (optional):http://img.plici.ro/image/wgR http://img.plici.ro/image/wgyAti incercat sa rezolvati singur?: da am cautat in gamemod sectiunea Players can not use this vehicle si nu este acolo ma ajuta cineva moltumesc!
  20. Problema intalnita (descriere): thegamers|localhost|root nu stiu cum naiba sa conecctez fila MySQL.txtEro(area / rile) / warning-(ul / urile): Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3.7-R2, (C)2005-2015 SA-MP Team [10:39:43] password = "" (string) [10:39:43] [10:39:43] Server Plugins [10:39:43] -------------- [10:39:43] Loading plugin: libRegEx.so [10:39:43] [10:39:43] ------------------------------ [10:39:43] | [10:39:43] | -> Regular Expression Plugin v0.2 [10:39:43] | -> Using Oniguruma v5.9.5 [10:39:43] | [10:39:43] ------ (c) 2014, Koala ------- [10:39:43] [10:39:43] Loaded. [10:39:43] Loading plugin: wp.so [10:39:43] [10:39:43] ================== [10:39:43] [10:39:43] Whirlpool loaded [10:39:43] [10:39:43] ================== [10:39:43] [10:39:43] Loaded. [10:39:43] Loading plugin: sscanf.so [10:39:43] [10:39:43] =============================== [10:39:43] sscanf plugin loaded. [10:39:43] Version: 2.8.1 [10:39:43] (c) 2012 Alex "Y_Less" Cole [10:39:43] =============================== [10:39:43] Loaded. [10:39:43] Loading plugin: streamer.so [10:39:43] *** Streamer Plugin v2.7 by Incognito loaded *** [10:39:43] Loaded. [10:39:43] Loading plugin: audio.so [10:39:43] *** Audio Plugin v0.5 R2 by Incognito loaded *** [10:39:43] Loaded. [10:39:43] Loading plugin: mysql_5.5.so [10:39:43] >> plugin.mysql: R39-2 successfully loaded. [10:39:43] Loaded. [10:39:43] Loading plugin: mysql_static.so [10:39:43] >> plugin.mysql: R39-2 successfully loaded. [10:39:43] Loaded. [10:39:43] Loading plugin: mysql.so [10:39:43] >> plugin.mysql: R38 successfully loaded. [10:39:43] Loaded. [10:39:43] Loading plugin: GeoIP.so [10:39:43] GeoIP_Plugin got loaded. [10:39:43] Loaded. [10:39:43] Loading plugin: GeoIP_Plugin.so [10:39:43] GeoIP_Plugin got loaded. [10:39:43] Loaded. [10:39:43] Loading plugin: Whirlpool.so [10:39:43] [10:39:43] ================== [10:39:43] [10:39:43] Whirlpool loaded [10:39:43] [10:39:43] ================== [10:39:43] [10:39:43] Loaded. [10:39:43] Loading plugin: nativechecker.so [10:39:43] Loaded. [10:39:43] Loaded 12 plugins. [10:39:43] [10:39:43] Filterscripts [10:39:43] --------------- [10:39:43] Loaded 0 filterscripts. [10:39:43] [10:39:43] [10:39:43] [10:39:43] ======================================= [10:39:43] | | [10:39:43] | YSI version 3.09.0684 | [10:39:43] | By Alex "Y_Less" Cole | [10:39:43] | | [10:39:43] ======================================= [10:39:43] [10:39:43] [script] 0 turfs loaded. [10:39:43] [script] 0 vehicles loaded. [10:39:43] [script] 0 rent cars loaded. [10:39:43] [script] 0 houses loaded. [10:39:43] [script] 0 clans loaded. [10:39:43] There aren't personal cars yet! [10:39:43] [script] 0 business loaded. [10:39:43] ----------------------------------------------------------------- [10:39:43] Script: THEG RPG by Awesome. [10:39:43] Status: Loaded OnGameModeInit, running version THEG v0.0.3 BETA [10:39:43] ----------------------------------------------------------------- [10:39:43] ----------------------------------------------------------------- [10:39:43] WARNING: You are running a BETA version of the script. [10:39:43] WARNING: This script is not optimized (or specifically built) for public usage yet. [10:39:43] ----------------------------------------------------------------- [10:39:43] main() has been called. [10:39:43] Number of vehicle models: 4 Liniile de cod / sursa / script-ul(obligatoriu):am incercat sa pun si asa la MySQL.txt #define MYSQL_DATABASE "f" #define MYSQL_USER "f" #define MYSQL_PASSWORD "T" #define MYSQL_HOST "89.33" #define SQL_HOST "89.33" #define SQL_USER "f" #define SQL_PASS "T" #define SQL_DB "f" is tot nu merge nu se logheaza pluginurile sunt bune puse nu stiu ce areImagini / Video (optional):Ati incercat sa rezolvati singur?: da
  21. gata am rezolvat singur trebuia sa sa pun new tmp;
×
×
  • 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.