3xTaSY
Membru-
Posts
83 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Everything posted by 3xTaSY
-
Nu este mare realizare..
-
Mai bine nu postez comanda, ma fac de ras :| raman recunoscator celui care ma ajuta sa-mi fac comanda :D
-
Nick: Terrow Problema: Nu stiu cum pot face o comanda pt. creeat case direct de pe server.. As ramane recunoscator celui care ma ajuta sa fac comanda Erori / warnings: - Lini/script: stock AH(hi,Float:iconX,Float:iconY,Float:iconZ,Float:interiorX,Float:interiorY,Float:interiorZ,Costa,Sella,Interiora) { //-------------------------------------------------------------------------- new house[128], string[128]; format(house, sizeof(house), "Houses/hi%d",hi); //-------------------------------------------------------------------------- if(!dini_Exists(house)) { dini_Create(house); format(hInfo[hi][Name], 24, "ForSale"); dini_Set(house, "Name", "ForSale"); format(hInfo[hi][Renter], 24, "ForRent"); dini_Set(house, "Renter", "ForRent"); hInfo[hi][Rentable] = 0; dini_IntSet(house, "Rentable", 0); hInfo[hi][Rentcost] = 0; dini_IntSet(house, "Rentcost", 0); hInfo[hi][Cost] = Costa; dini_IntSet(house, "Cost", Costa+00000); hInfo[hi][Sell] = Sella; dini_IntSet(house, "Sell", Sella); hInfo[hi][Interior] = Interiora; dini_IntSet(house, "Interior", Interiora); hInfo[hi][Virtualworld] = hi; dini_IntSet(house, "Locked", 1); hInfo[hi][InteriorX] = interiorX; hInfo[hi][InteriorY] = interiorY; hInfo[hi][InteriorZ] = interiorZ; dini_FloatSet(house, "X", interiorX); dini_FloatSet(house, "Y", interiorY); dini_FloatSet(house, "Z", interiorZ); dini_IntSet(house, "RentPay", 0); dini_IntSet(house, "RentGet", 0); hInfo[hi][Locked] = 1; print("-"); print("-------------(House Created)-------------"); printf("> Hello, %d", hi); printf("> Buy Cost: %d", Costa+0000); printf("> Sell Cost: %d", Sella); printf("> Interior: %d", Interiora); printf("> VirtualWorld: %d", hi); print("-----------------------------------------"); print("-"); } else { format(hInfo[hi][Name], 24, dini_Get(house, "Name")); format(hInfo[hi][Renter], 24, dini_Get(house, "Renter")); hInfo[hi][Rentable] = dini_Int(house, "Rentable"); hInfo[hi][Rentcost] = dini_Int(house, "Rentcost"); hInfo[hi][Cost] = dini_Int(house, "Cost"); hInfo[hi][Sell] = dini_Int(house, "Sell"); hInfo[hi][Interior] = dini_Int(house, "Interior"); hInfo[hi][Locked] = dini_Int(house, "Locked"); hInfo[hi][InteriorX] = dini_Float(house, "X"); hInfo[hi][InteriorY] = dini_Float(house, "Y"); hInfo[hi][InteriorZ] = dini_Float(house, "Z"); hInfo[hi][Virtualworld] = dini_Int(house, "Virtualworld"); } //-------------------------------------------------------------------------- hInfo[hi][iconx] = iconX; hInfo[hi][icony] = iconY; hInfo[hi][iconz] = iconZ; format(house, sizeof(house), "Houses/hi%d",hi); //-------------------------------------------------------------------------- if(strcmp(hInfo[hi][Name],"ForSale",true) == 0) { HousePickup[hi] = CreatePickup(19135, 23, iconX, iconY, iconZ); } else { HousePickup[hi] = CreatePickup(19135, 23, iconX, iconY, iconZ); } format(string, sizeof(string), "{FFFF00}Owner: {33FF33}%s\n{FFFF00}House Cost: {33FF33}%i {FF0000}Coins", hInfo[hi][Name], hInfo[hi][Cost]); housei[hi] = Create3DTextLabel(string, red, iconX, iconY, iconZ, 90.0, 0, 0); } Ai incercat sa rezolvi singur ?: Am incercat eu sa fac ceva acolo, dar nu merge.. sunt incepator in scripting, deci nu veniti cu comentarii tampite.
-
Deci, n-am nicio idee cum as putea face o comanda pentru creeat o casa in punctul in care ma aflu. Stock-ul este mai jos. stock AH(hi,Float:iconX,Float:iconY,Float:iconZ,Float:interiorX,Float:interiorY,Float:interiorZ,Costa,Sella,Interiora) { //-------------------------------------------------------------------------- new house[128], string[128]; format(house, sizeof(house), "Houses/hi%d",hi); //-------------------------------------------------------------------------- if(!dini_Exists(house)) { dini_Create(house); format(hInfo[hi][Name], 24, "ForSale"); dini_Set(house, "Name", "ForSale"); format(hInfo[hi][Renter], 24, "ForRent"); dini_Set(house, "Renter", "ForRent"); hInfo[hi][Rentable] = 0; dini_IntSet(house, "Rentable", 0); hInfo[hi][Rentcost] = 0; dini_IntSet(house, "Rentcost", 0); hInfo[hi][Cost] = Costa; dini_IntSet(house, "Cost", Costa+00000); hInfo[hi][Sell] = Sella; dini_IntSet(house, "Sell", Sella); hInfo[hi][Interior] = Interiora; dini_IntSet(house, "Interior", Interiora); hInfo[hi][Virtualworld] = hi; dini_IntSet(house, "Locked", 1); hInfo[hi][InteriorX] = interiorX; hInfo[hi][InteriorY] = interiorY; hInfo[hi][InteriorZ] = interiorZ; dini_FloatSet(house, "X", interiorX); dini_FloatSet(house, "Y", interiorY); dini_FloatSet(house, "Z", interiorZ); dini_IntSet(house, "RentPay", 0); dini_IntSet(house, "RentGet", 0); hInfo[hi][Locked] = 1; print("-"); print("-------------(House Created)-------------"); printf("> Hello, %d", hi); printf("> Buy Cost: %d", Costa+0000); printf("> Sell Cost: %d", Sella); printf("> Interior: %d", Interiora); printf("> VirtualWorld: %d", hi); print("-----------------------------------------"); print("-"); } else { format(hInfo[hi][Name], 24, dini_Get(house, "Name")); format(hInfo[hi][Renter], 24, dini_Get(house, "Renter")); hInfo[hi][Rentable] = dini_Int(house, "Rentable"); hInfo[hi][Rentcost] = dini_Int(house, "Rentcost"); hInfo[hi][Cost] = dini_Int(house, "Cost"); hInfo[hi][Sell] = dini_Int(house, "Sell"); hInfo[hi][Interior] = dini_Int(house, "Interior"); hInfo[hi][Locked] = dini_Int(house, "Locked"); hInfo[hi][InteriorX] = dini_Float(house, "X"); hInfo[hi][InteriorY] = dini_Float(house, "Y"); hInfo[hi][InteriorZ] = dini_Float(house, "Z"); hInfo[hi][Virtualworld] = dini_Int(house, "Virtualworld"); } //-------------------------------------------------------------------------- hInfo[hi][iconx] = iconX; hInfo[hi][icony] = iconY; hInfo[hi][iconz] = iconZ; format(house, sizeof(house), "Houses/hi%d",hi); //-------------------------------------------------------------------------- if(strcmp(hInfo[hi][Name],"ForSale",true) == 0) { HousePickup[hi] = CreatePickup(19135, 23, iconX, iconY, iconZ); } else { HousePickup[hi] = CreatePickup(19135, 23, iconX, iconY, iconZ); } format(string, sizeof(string), "{FFFF00}Owner: {33FF33}%s\n{FFFF00}House Cost: {33FF33}%i {FF0000}Coins", hInfo[hi][Name], hInfo[hi][Cost]); housei[hi] = Create3DTextLabel(string, red, iconX, iconY, iconZ, 90.0, 0, 0); } As ramane recunoscator celui care ma ajuta sa fac acea comanda :D
-
Firma de host functioneaza pe lemne . Au ramas fara lemne. Zi numele firmei 8-|
-
Romania Real Stunt - Edit Frumos edit, 9/10 :)
-
Nume: TwisteR42O.. Problem? întâlnit?: Am incercat sa fac o comanda pentru a da restart la proprietati / case direct de pe server. Ce am încercat pân? acum: case Console: { if ( !response ) return 1; switch( listitem ) { case 0: mysql_function_query( g_Handle, "UPDATE `Houses` SET `Name` = ForSale", false, "", "" ); case 1: mysql_function_query( g_Handle, "UPDATE `Props` SET `pOwner` = Nobody", false, "", "" ); } return 1; } Codul sursa/Log/Altele: Am pus mai sus. Compilarea imi merge perfect, cand intru pe server imi apare in meniu restart houses / properties, dar cand dau click pe el, in baza de date nu se updateaza nimic la acea coloana :|
-
Cum pot face, ca atunci cand un admin foloseste comanda /giveweapon, sa apara ceva de genu: [ADMIN]: X has used the command /giveweapon Numele armei Nu stiu ce sa pun in comanda ca sa-mi apara si numele armei dupa /giveweapon ... :|
-
L-am instalat deja. Degeaba :)
-
Ce ma? Am luat deja astea, am pus fisierele in folderul unde este instalat GTA-ul, si gata. TOT NU MERGE !
-
Orice copil de 7 ani poate face o astfel de comanda. :-j Ai gandit mult inainte sa o faci?
-
Deci, cand deschid samp-server.exe, imi apar 2 erori: Windows-ul l-am instalat din nou, in seara asta. Nu cred ca este ceva in neregula cu windows-ul...
-
Nu folosesc host. Intru pe localhost/phpmyadmin ca sa incarc baza de date(folosesc xampp)
-
Am pus exact cum mi-ai spus tu => 5 errors. Toate sunt legate de conexiunea la baza de date a serverului. Serverul ruleaza pe a_mysql_r33 si in folderul includes din pawno, exista acest include. Este wos build 29 (poate te ajuta sa intelegi mai bine)
-
Cand deschid serverul, imi apar urmatoarele: ---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3x-R2, (C)2005-2013 SA-MP Team Server Plugins -------------- Loading plugin: crashdetect CrashDetect v4.10 is OK. Loaded. Loading plugin: sscanf =============================== sscanf plugin loaded. Version: 2.8.1 (c) 2012 Alex "Y_Less" Cole =============================== Loaded. Loading plugin: streamer *** Streamer Plugin v2.6.1 by Incognito loaded *** Loaded. Loading plugin: Whirlpool ================== Whirlpool loaded ================== Loaded. Loading plugin: mysql > MySQL plugin R5 successfully loaded. Loaded. Loading plugin: gvar *** GVar Plugin v1.3 by Incognito loaded *** Loaded. Loading plugin: nativechecker Loaded. Loaded 7 plugins. Ban list -------- Loaded: samp.ban Filterscripts --------------- Loading filterscript 'streamermap.amx'... Loading filterscript 'Objects.amx'... Loading filterscript 'CarPers.amx'... System Cars Personal Loaded Succesfully! Loading filterscript 'Crcon.amx'... -------------------------------------- RCON SPassword - Loaded succesfully! -------------------------------------- Loaded 4 filterscripts. Error: Function not registered: 'cache_get_row_count' Error: Function not registered: 'mysql_tquery' Error: Function not registered: 'mysql_format' Error: Function not registered: 'mysql_log' Error: Function not registered: 'mysql_escape_string' Error: Function not registered: 'cache_get_data' Error: Function not registered: 'cache_get_field_content' Error: Function not registered: 'cache_get_field_content_int' Error: Function not registered: 'cache_get_field_content_float' Error: Function not registered: 'cache_insert_id' Error: Function not registered: 'cache_get_row' [debug] Run time error 19: "File or function is not found" [debug] cache_get_row_count [debug] mysql_tquery [debug] mysql_format [debug] mysql_log [debug] mysql_escape_string [debug] cache_get_data [debug] cache_get_field_content [debug] cache_get_field_content_int [debug] cache_get_field_content_float [debug] cache_insert_id [debug] cache_get_row [debug] Run time error 19: "File or function is not found" [debug] cache_get_row_count [debug] mysql_tquery [debug] mysql_format [debug] mysql_log [debug] mysql_escape_string [debug] cache_get_data [debug] cache_get_field_content [debug] cache_get_field_content_int [debug] cache_get_field_content_float [debug] cache_insert_id [debug] cache_get_row Script[gamemodes/rrs.amx]: Run time error 19: "File or function is not found" Number of vehicle models: 11 Nu stiu ce cauzeaza asta. In gamemode, am pus asa: [pawn]#define USE_LOCALHOST (false) #if USE_LOCALHOST == true #define LOCAL_HOST "localhost" #define LOCAL_USER "root" #define LOCAL_PASS "" #define LOCAL_DB "MySQL" #else #define SERVER_HOST "94.176.163.5" #define SERVER_USER "gamer_rrs" #define SERVER_PASS "qazwsxedc00qwezsafs" #define SERVER_DB "gamer_rrs" #endif[/pawn]Ca sa nu se salveze conturile, doar sa se deschida fara a se salva nimic . Nu merge :|
-
Deci, cand deschid in xampp, Apache si Mysql, imi apar urmatoarele in consola: La apache: 9:48:09 PM [Apache] Error: Apache shutdown unexpectedly. 9:48:09 PM [Apache] This may be due to a blocked port, missing dependencies, 9:48:09 PM [Apache] improper privileges, a crash, or a shutdown by another method. 9:48:09 PM [Apache] Press the Logs button to view error logs and check 9:48:09 PM [Apache] the Windows Event Viewer for more clues 9:48:09 PM [Apache] If you need more help, copy and post this 9:48:09 PM [Apache] entire log window on the forums La mysql: 9:44:58 PM [mysql] Error: MySQL shutdown unexpectedly. 9:44:58 PM [mysql] This may be due to a blocked port, missing dependencies, 9:44:58 PM [mysql] improper privileges, a crash, or a shutdown by another method. 9:44:58 PM [mysql] Press the Logs button to view error logs and check 9:44:58 PM [mysql] the Windows Event Viewer for more clues 9:44:58 PM [mysql] If you need more help, copy and post this 9:44:58 PM [mysql] entire log window on the forums Ele sunt la fel erorile, dar nu stiu cine le provoaca... Am dezinstalat Skype-ul, si tot nu merge. Skype-ul avea acelasi port ca si xamp, si de asta nu mergea. Cum pot rezolva ? EDIT: M-am uitat in loguri la fiecare, nu apare nimic in log.
-
Uite un script: #define FILTERSCRIPT #include <a_samp> //-------------------Defines-------------------- #define SecondaryRconPass "Beta" //Parola secundara #define DIALOG_TYPE_SecondaryRcon 2013 //---------------------------------------------- //------------------------------------------------------------------------------ new Attempts[MAX_PLAYERS]; //------------------------------------------------------------------------------ #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" RCON SPassword - Loaded succesfully!"); print("--------------------------------------\n"); return 1; } #endif public OnRconLoginAttempt(ip[], password[], success) { if(success) { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { new pIP[16]; GetPlayerIp(i, pIP, 16); if(!strcmp(pIP,ip,true)) { new string[128]; format(string,sizeof(string),"{FFFFFF}Please enter the secondary password!"); ShowPlayerDialog(i, DIALOG_TYPE_SecondaryRcon, DIALOG_STYLE_PASSWORD,"RCON Secondary Password",string, "Ok", "Close"); } } } } return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG_TYPE_SecondaryRcon) { if (response) { if (!strcmp(SecondaryRconPass, inputtext) && !(!strlen(inputtext))) { GameTextForPlayer(playerid, "~r~~h~RCON ~w~~h~Authorized !",3000,3); } else { if(Attempts[playerid] == 3) { SendClientMessage(playerid, 0xFF0000AA, "You are kicked for entering wrong Secondary RCON Password!"); Kick(playerid); } Attempts[playerid] ++; new tmp[140]; SendClientMessage(playerid, 0xFF0000AA, "Invalid RCON Password!"); format(tmp,sizeof(tmp),"{FF0000}Invalid Password! \n{FFFFFF}Enter the correct {FF0000}RCON Secondary Password{FFFFFF}!\n\n{FFFF00}Attempts: {FF0000}%d{33FF33}/3", Attempts[playerid]); ShowPlayerDialog(playerid, DIALOG_TYPE_SecondaryRcon, DIALOG_STYLE_PASSWORD, "RCON Secondary Password",tmp, "Ok", "Close"); } } else { SendClientMessage(playerid, 0xFF0000AA, "Kicked !"); return Kick(playerid); } } return 1; }
-
Uite un script: #define FILTERSCRIPT #include <a_samp> //-------------------Defines-------------------- #define SecondaryRconPass "Beta" //Parola a 2-a #define DIALOG_TYPE_SecondaryRcon 2013 //---------------------------------------------- //------------------------------------------------------------------------------ new Attempts[MAX_PLAYERS]; //------------------------------------------------------------------------------ #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" RCON SPassword - Loaded succesfully!"); print("--------------------------------------\n"); return 1; } #endif public OnRconLoginAttempt(ip[], password[], success) { if(success) { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { new pIP[16]; GetPlayerIp(i, pIP, 16); if(!strcmp(pIP,ip,true)) { new string[128]; format(string,sizeof(string),"{FFFFFF}Please enter the secondary password!"); ShowPlayerDialog(i, DIALOG_TYPE_SecondaryRcon, DIALOG_STYLE_PASSWORD,"RCON Secondary Password",string, "Ok", "Close"); } } } } return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG_TYPE_SecondaryRcon) { if (response) { if (!strcmp(SecondaryRconPass, inputtext) && !(!strlen(inputtext))) { GameTextForPlayer(playerid, "~r~~h~RCON ~w~~h~Authorized !",3000,3); } else { if(Attempts[playerid] == 3) { SendClientMessage(playerid, 0xFF0000AA, "You are kicked for entering wrong Secondary RCON Password!"); Kick(playerid); } Attempts[playerid] ++; new tmp[140]; SendClientMessage(playerid, 0xFF0000AA, "Invalid RCON Password!"); format(tmp,sizeof(tmp),"{FF0000}Invalid Password! \n{FFFFFF}Enter the correct {FF0000}RCON Secondary Password{FFFFFF}!\n\n{FFFF00}Attempts: {FF0000}%d{33FF33}/3", Attempts[playerid]); ShowPlayerDialog(playerid, DIALOG_TYPE_SecondaryRcon, DIALOG_STYLE_PASSWORD, "RCON Secondary Password",tmp, "Ok", "Close"); } } else { SendClientMessage(playerid, 0xFF0000AA, "Kicked !"); return Kick(playerid); } } return 1; }
-
Cand deschid serverul, in consola, imi apar urmatoarele: ---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3x-R2, (C)2005-2013 SA-MP Team [19:05:46] [19:05:46] Server Plugins [19:05:46] -------------- [19:05:46] Loading plugin: crashdetect [19:05:46] CrashDetect v4.10 is OK. [19:05:46] Loaded. [19:05:46] Loading plugin: sscanf [19:05:46] [19:05:46] =============================== [19:05:46] sscanf plugin loaded. [19:05:46] Version: 2.8.1 [19:05:46] (c) 2012 Alex "Y_Less" Cole [19:05:46] =============================== [19:05:46] Loaded. [19:05:46] Loading plugin: streamer [19:05:46] *** Streamer Plugin v2.6.1 by Incognito loaded *** [19:05:46] Loaded. [19:05:46] Loading plugin: Whirlpool [19:05:46] [19:05:46] ================== [19:05:46] [19:05:46] Whirlpool loaded [19:05:46] [19:05:46] ================== [19:05:46] [19:05:46] Loaded. [19:05:46] Loading plugin: mysql [19:05:46] > MySQL plugin R5 successfully loaded. [19:05:46] Loaded. [19:05:46] Loading plugin: nativechecker [19:05:46] Loaded. [19:05:46] Loading plugin: gvar [19:05:46] *** GVar Plugin v1.3 by Incognito loaded *** [19:05:46] Loaded. [19:05:46] Loaded 7 plugins. [19:05:46] [19:05:46] Ban list [19:05:46] -------- [19:05:46] Loaded: samp.ban [19:05:46] [19:05:46] [19:05:46] Filterscripts [19:05:46] --------------- [19:05:46] Loading filterscript 'Objects.amx'... [19:05:46] Loading filterscript 'CarPers.amx'... [19:05:46] [19:05:46] System Cars Personal Loaded Succesfully! [19:05:46] [19:05:46] Loading filterscript 'Crcon.amx'... [19:05:46] -------------------------------------- [19:05:46] RCON SPassword - Loaded succesfully! [19:05:46] -------------------------------------- [19:05:46] Loaded 3 filterscripts. [19:05:46] Error: Function not registered: 'GetGVarInt' [19:05:46] Error: Function not registered: 'SetGVarInt' [19:05:46] Error: Function not registered: 'GetGVarFloat' [19:05:46] Error: Function not registered: 'SetGVarString' [19:05:46] Error: Function not registered: 'SetGVarFloat' [19:05:46] Error: Function not registered: 'GetGVarString' [19:05:46] [19:05:46] ======================================= [19:05:46] | | [19:05:46] | YSI version 1.04.0000 | [19:05:46] | By Alex "Y_Less" Cole | [19:05:46] | | [19:05:46] ======================================= [19:05:46] [19:05:46] Iter_OnGameModeInit start: 60 [19:05:46] << MySQL Conecting >> To 'localhost' as 'root' to database 'xsd_server'. [19:05:46] << MySQL >> Connection to 'localhost' established. [19:05:46] << MySQL >> Database 'xsd_server' selected. [19:05:46] - 4 Forbidden Names Loaded [19:05:46] - 4 Forbidden Words Loaded [19:05:46] Spawned 4 Hot Air Balloons [19:05:46] Iter_OnGameModeInit: first [19:05:46] Number of vehicle models: 14 [19:05:46] Loading houses... [19:05:46] Successfully Loaded 1216 houses [19:05:46] Loading properties... [19:05:46] Successfully Loaded 100 properties [19:05:46] Loading gangs... [19:05:46] Gang Name: Groove Street Familly - ID: 7 [19:05:46] Gang Name: Street Hunters - ID: 1 [19:05:46] Gang Name: The Warriors - ID: 2 [19:05:46] Gang Name: Caribbean Pirates - ID: 3 [19:05:46] Gang Name: Brutall Brother - ID: 4 [19:05:46] Gang Name: UnKown Legend - ID: 5 [19:05:46] Gang Name: Thug 4 Life - ID: 6 [19:05:46] Gang Name: 3rd Street Saints - ID: 8 [19:05:46] Loading teritories... [19:05:46] Successfully Loaded 0 teritories [19:05:46] Loading gang checkpoints... [19:05:46] Successfully Loaded 8 gang checkpoints [19:05:46] Loading vehicles... [19:05:46] Successfully Loaded 0 vehicles. [19:05:46] Loading races... [19:05:46] Successfully loaded 34 races [19:05:46] Loading drifts... [19:05:46] Successfully Loaded 7 drifts La faza cu Error: Function not registered: , nu stiu ce trebuie sa fac.
-
Script-ul a fost facut de catre Ph0enix ! Eram si eu pe server. Prima data a testat pe mine Imi pare rau ca n-am facut screenshot atunci. Horke1, tu cine p**a mea mai esti si tu? Tu daca vezi un "script" care seamana cu unu` de pe alt server, inseamna ca e copiat FIX de pe acel server? Hai mai dute drq...
-
Pai ala care ti-a facut gamemode-ul a bagat acea comanda. Mai bine plateai pe cineva sa-ti faca unul frumos, si fara smecherii.
-
Posteaza comanda /jail .
-
Cum pot face ca suma maxima de cash sa fie de 999.999.999$ ? Adica, daca eu fac mai mult de 999.999.999$ sa nu se puna. Sa ramaie tot suma aia.