xxSPEEDYxx
Membru-
Posts
1,614 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
News
Documentation
Everything posted by xxSPEEDYxx
-
http://www.sa-mp.ro/forum/index.php/topic,14604.msg89008.html#msg89008 by FarSe! Cel mai bun! Pune acolo cand convertezi: Convert to 0.3c objects 2
-
+ ca sscanf2 ii plugin. SScanf normal era doar include! Poftim aici: http://forum.sa-mp.com/showthread.php?t=120356
-
Pentru ca sigurat la facut din "system de lupte" al sau xD:)) 2/5 - Identitate!!
-
WTF ?! Asta da filterscript:))... 20 de linii:)) In loc de listitem puteai face cu case era mai scurt 1 linie pentru un Fight Style nu 3 xD 1/5
-
Nu ai puse includele noi ( 0.3c ). www.sa-mp.com/download.php downloadezi de acolo serverul copiezi a_samp in includes tale so compilez serveru. PS. - Tu inca nu ai includele 0.3c si imd se lanseaza 0.3d=))
-
http://wiki.sa-mp.com/wiki/Format - Formatezi dialog-ul. http://wiki.sa-mp.com/wiki/ShowPlayerDialog - Arati dialog-ul!
-
Trebuie sa-l salvezi cu ceva functie. Pentru asta sa inventat dini, Y_INI, SQLite, MySQL, etc /TC!
-
Pune sus in script: #pragma tabsize 0
-
1. Godfather buguit 2. Leadere = Probleme Godfather!
-
Este doar un warn, se compileaza scriptu + poti rula GM
-
Problema cu Ladmin4v2,Nu salveaza adminul.
xxSPEEDYxx replied to [RDE]Secret's question in Arhivă probleme
Downloadeaza inca o data LAdmin4v2 original de pe www.sa-mp.com poate merge, eu asa l-am luat si dupa aia l-am editat xD -
Nu ai implementat ProxDetector: forward ProxDetector(Float:radi, playerid, str[], col1, col2, col3, col4, col5); public ProxDetector(Float:radi, playerid, str[],col1,col2,col3,col4,col5) { if(IsPlayerConnected(playerid)) { new Float:posx, Float:posy, Float:posz; new Float:oldposx, Float:oldposy, Float:oldposz; new Float:tempposx, Float:tempposy, Float:tempposz; GetPlayerPos(playerid, oldposx, oldposy, oldposz); //radi = 2.0; //Trigger Radius for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { GetPlayerPos(i, posx, posy, posz); tempposx = (oldposx -posx); tempposy = (oldposy -posy); tempposz = (oldposz -posz); //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz); if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16))) { SendClientMessage(i, col1, str); } else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8))) { SendClientMessage(i, col2, str); } else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4))) { SendClientMessage(i, col3, str); } else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2))) { SendClientMessage(i, col4, str); } else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) { SendClientMessage(i, col5, str); } } } }//not connected return 1; } Nu strica sa dai si o cautare rapida si pe G00GL3 )
-
De ce folosesti: db_query(Database, query); db_free_result(db_query(Database, query)); cand formatezi un string? :undecided: Foloseste doar: db_free_result(db_query(Database, query));
-
Cand inserezi intr-o database trebuie sa inserezi tot ce are e creata! Database a ta este creata din 9 coloane Iar tu cand inserezi in ea inserezi in 10 coloane: "INSERT INTO `Users` VALUES ('%s', '%s', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d')" Unul ii in + acolo
-
Salls, Nu stiu daca stiati dar, este un define care iti da viata infinita, adica cea de la /god sau /godcar FARA TIMER! Prima oara nu stiam nici eu de ea:)) dar dupa ce stuntman mi-a spus ca exista si mia dat indicii sa o caut am gasit-o:D Deci asta este define-ul!: #define FLOAT_INFINITY (Float:0x7F800000) - Il puneti la celalate defines. Dupa aceea mergeti la comanda /god adaugati: SetPlayerHealth( playerid, FLOAT_INFINITY ); Si gata aveti viata infinita fara timer, pe care puteti sa-l scoateti;) PS. - Cam asa arata comanda mea: CMD:god( PARAMS ) { VipCheck( playerid, 4, 4 ); LoginCheck( playerid ); if ( PlayerInfo[ playerid ][ God ] == 0 ) { SetPlayerHealth( playerid, FLOAT_INFINITY ); GivePlayerWeapon( playerid, 16, 50000 ); GivePlayerWeapon( playerid, 26, 50000 ); Game3TextForPlayer( playerid, "~h~~g~GODMODE ON" ); } else { Game3TextForPlayer( playerid, "~h~~r~GODMODE OFF" ); SetPlayerHealth( playerid, 100 ); } return 1; } EDIT: Tot asa se poate face si la vehicule xD
-
Functia DB_Escape sincer mi se pare o prostie. Incearca asa: if ( dialogid == Login ) { if ( response ) { format( query, sizeof( query ), "SELECT * FROM `Users` WHERE `Name` = '%s' AND `Password` = '%s'", PlayerName( playerid ), strlen( inputtext ) ); Result = db_query( Database, query ); if ( db_num_rows( Result ) ) { new Field[ 20 ]; db_get_field_assoc( Result, "Level", Field, 30 ); pData[playerid][Level] = strval(Field); SetPlayerScore(playerid, pData[playerid][Level]); db_get_field_assoc( Result, "Money", Field, 30 ); pData[playerid][Money] = strval(Field); SetPlayerMoney(playerid, pData[playerid][Money]); pData[ playerid ][ Logged ] = true; SpawnPlayer( playerid ); } else { format(string, sizeof(string), "The password entered is wrong, please try again, but now typing the correctly password.\n\n\n\n"); ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Login", string, "Login", "Exit"); } db_free_result(Result); } else return Kick(playerid); } Si functia PlayerName: stock PlayerName( i ) { new n[ 24 ]; GetPlayerName( i, n, 24 ); return n; }
-
Cand deschizi consola se inchide imediat? Ai compilat GM-ul?
-
1. Ai postat gresit 2. Sunt 100 de systeme de masini personale pe www.sa-mp.com doar trebuie sa le cauti. 3. Probleme GF!
-
Posteaza ce ii la linia 814!
-
Trebuie sa recunosc ca ti-a iesit destul de frumos :cheesy: Bravo 5/5!
-
Nu inteleg la ce ai folosit { si } Incearca asa: new Announcements[12][128] = //Si acolo trebuie 12, pentru ca sunt 12 mesaje, cand mai adaugi unu schimbi in 13...si tot asa { ""RES_RED"[BOOT]:"RES_WHITE"Vrei sa prinzi mai multa viteza ?? Scrie "RES_GREEN"/sb.", ""RES_RED"[BOOT]:"RES_WHITE"Acum poti sa iti alegi propriul stil de lupta! Scrie "RES_GREEN"/fs "RES_WHITE"for Info.", ""RES_RED"[BOOT]:"RES_WHITE"Scrie "RES_GREEN"/cmds "RES_WHITE"pentru lista comenzilor.", ""RES_RED"[BOOT]:"RES_WHITE"Vrei mai multe arme ?? Scrie "RES_GREEN"/wepons /arme!", ""RES_RED"[BOOT]:"RES_WHITE"Vrei sa faci parashutism ? Scrie "RES_GREEN"/dive!", ""RES_RED"[BOOT]:"RES_WHITE"Foloseste "RES_GREEN"/v Nume masina "RES_WHITE"Ex:"RES_GREEN"/v sultan /v elegy)", ""RES_RED"[BOOT]:"RES_WHITE"Vrei sa mergi undeva cool? Type "RES_GREEN"/teles!", ""RES_RED"[BOOT]:"RES_WHITE"Nou pe server? Scrie "RES_GREEN"/cmds "RES_WHITE"si "RES_GREEN"/rules!", ""RES_RED"[BOOT]:"RES_WHITE"Welcome to "RES_RED"Romania "RES_YELLOW"Epic "RES_BLUE"Stunt! "RES_WHITE"We hope you enjoyed the stay!", ""RES_RED"[BOOT]:"RES_WHITE"Big weapons mean big balls type "RES_GREEN"/wepons /arme!", ""RES_RED"[BOOT]:"RES_WHITE"Vrei sa fi admin? Go pe forum!", ""RES_RED"[BOOT]:"RES_WHITE"Ai zarit un hack-er? Report it to admins! "RES_GREEN"/report [id] [reason]" };
-
Sa stii ca doar se respecta regulamentul. Probleme Godfather! /TC
-
Nu se va intampla nimic la server, doar ca ii va face spam lui, celui care apasa pe chat.
-
Uite aici: http://www.sa-mp.ro/forum/index.php/topic,13420.msg81429.html#msg81429 Uitate la Anti-Spam sa vezi cum ii facut, poti face si tu la fel, daca vrei pe o limita de timp.
-
Sunt doar warninguri, cu ele poti compila GM-ul/FS-ul.