Jump to content

Nurdock

Membru
  • Posts

    149
  • Joined

  • Last visited

Everything posted by Nurdock

  1. Ai folosit codu care ti lam dat? In loc de dialog_report cum ai tu acolo la ondialogresponse ui urmatorul cod: if(dialogid == DIALOG_REPORT) { if(!response) { return 1; } else { if(listitem == 0) { ShowPlayerDialog(playerid,DIALOG_REPORTJUCATOR,DIALOG_STYLE_INPUT,"Raporteaza un jucator:","Spuneti-ne cateva detalii despre jucator si numele acestuia.","Select","Cancel"); return 1; } if(listitem == 1) { ShowPlayerDialog(playerid,DIALOG_AJUTOR,DIALOG_STYLE_INPUT,"Ajutor / probleme:","Ce problema aveti?","Select","Cancel"); return 1; } if(listitem == 2) { ShowPlayerDialog(playerid,DIALOG_BUG,DIALOG_STYLE_INPUT,"Raporteaza un BUG:","Despre ce bug este vorba?","Select","Cancel"); return 1; } } }
  2. Poate la asta te-ai referit dar eu nu am vaz nicaeri sa zici ca la inceput sa puna if(!response)
  3. In loc de dialog_report cum ai tu acolo la ondialogresponse ui urmatorul cod: if(dialogid == DIALOG_REPORT) { if(!response) { return 1; } else { if(listitem == 0) { ShowPlayerDialog(playerid,DIALOG_REPORTJUCATOR,DIALOG_STYLE_INPUT,"Raporteaza un jucator:","Spuneti-ne cateva detalii despre jucator si numele acestuia.","Select","Cancel"); return 1; } if(listitem == 1) { ShowPlayerDialog(playerid,DIALOG_AJUTOR,DIALOG_STYLE_INPUT,"Ajutor / probleme:","Ce problema aveti?","Select","Cancel"); return 1; } if(listitem == 2) { ShowPlayerDialog(playerid,DIALOG_BUG,DIALOG_STYLE_INPUT,"Raporteaza un BUG:","Despre ce bug este vorba?","Select","Cancel"); return 1; } } } Trebuie sa mearga
  4. Nu inteleg unde dai esc deci si daca dai sa zicem pe o selectie si dai esc iti da kick? ca sa stiu
  5. Deci la orice selectie de pe dialog primesti?
  6. Sterge ce ii la linia aia
  7. Iti apare macar dialogul sau cand primesti kick?
  8. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { new sendername[MAX_PLAYER_NAME]; new string[256]; new giveplayerid; new vehid = GetPlayerVehicleID(playerid); if(dialogid == DIALOG_REPORT) { if(response) { if(listitem == 0) { ShowPlayerDialog(playerid,DIALOG_REPORTJUCATOR,DIALOG_STYLE_INPUT,"Raporteaza un jucator:","Spuneti-ne cateva detalii despre jucator si numele acestuia.","Select","Cancel"); return 1; } if(listitem == 1) { ShowPlayerDialog(playerid,DIALOG_AJUTOR,DIALOG_STYLE_INPUT,"Ajutor / probleme:","Ce problema aveti?","Select","Cancel"); return 1; } if(listitem == 2) { ShowPlayerDialog(playerid,DIALOG_BUG,DIALOG_STYLE_INPUT,"Raporteaza un BUG:","Despre ce bug este vorba?","Select","Cancel"); return 1; } } } if(dialogid == DIALOG_REPORTJUCATOR) { if(response == 1) { SendClientMessage(playerid,COLOR_WHITE,"SERVER: Jucatorul a fost raportat , iar in scurt timp un administrator se va ocupa de acesta."); format(string,sizeof(string),"[REPORT]: {7a0f27}%s{FFFFFF} a raportat un jucator! : {7a0f27}({FFFFFF} %s {7a0f27})",Nume(playerid),inputtext); ABroadCast(COLOR_1BLUE,string,1); SetPVarInt(playerid,"Report",1); } } if(dialogid == DIALOG_AJUTOR) { if(!response) { return 1; } else { if(response == 1) { SendClientMessage(playerid,COLOR_WHITE,"SERVER: Problema dvs. a fost trimisa catre un administrator."); format(string,sizeof(string),"[REPORT]: {7a0f27}%s{FFFFFF} are o problema! : {7a0f27}({FFFFFF} %s {7a0f27})",Nume(playerid),inputtext); ABroadCast(COLOR_1BLUE,string,1); SetPVarInt(playerid,"Report",1); } } } if(dialogid == DIALOG_BUG) { if(!response) { return 1; } else { if(response == 1) { SendClientMessage(playerid,COLOR_WHITE,"SERVER: BUG-ul gasit de dvs. a fost trimis catre un administrator pentru analizare! Iti multumim!"); format(string,sizeof(string),"[REPORT]: {7a0f27}%s{FFFFFF} a gasit un bug! : {7a0f27}({FFFFFF} %s {7a0f27})",Nume(playerid),inputtext); ABroadCast(COLOR_1BLUE,string,1); SetPVarInt(playerid,"Report",1); } } } Acest cod trebuie sa iti mearga, incearca-l
  9. Ok man dar ar fi fain sa mai adauge skinuri noi.
  10. Daca il pornesc in pc mi se logheaza bine mysql-ul dar cand il deschid in host imi zice ca e mysql r33 dar mysq-ul este r41
  11. Am pus dar la server_log nush dece imi apare r33
  12. Am inceput un gamemode de la 0 si lam pus pe host dar imi da aceste erori si nush dece. P.S. erorile sunt in serverlog ---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3.7-R2, (C)2005-2015 SA-MP Team [15:04:13] [15:04:13] Server Plugins [15:04:13] -------------- [15:04:13] Loading plugin: mysql_static.so [15:04:13] >> plugin.mysql: R33 successfully loaded. [15:04:13] Loaded. [15:04:13] Loading plugin: sscanf.so [15:04:13] [15:04:13] =============================== [15:04:13] sscanf plugin loaded. [15:04:13] Version: 2.8.1 [15:04:13] (c) 2012 Alex "Y_Less" Cole [15:04:13] =============================== [15:04:13] Loaded. [15:04:13] Loading plugin: nativechecker.so [15:04:13] Loaded. [15:04:13] Loading plugin: streamer.so [15:04:13] *** Streamer Plugin v2.8.2 by Incognito loaded *** [15:04:13] Loaded. [15:04:13] Loaded 4 plugins. [15:04:13] [15:04:13] Filterscripts [15:04:13] --------------- [15:04:13] Loading filterscript 'GPS.amx'... [15:04:13] -------------------------------------- [15:04:13] GPS Dynamic System by Gireada [15:04:13] -------------------------------------- [15:04:13] Loaded 1 filterscripts. [15:04:13] Error: Function not registered: 'mysql_pquery' [15:04:13] Error: Function not registered: 'cache_get_value_name_int' [15:04:13] Error: Function not registered: 'cache_get_value_name' [15:04:13] Error: Function not registered: 'cache_get_value_name_float' [15:04:13] Error: Function not registered: 'CreateDynamicPickup' [15:04:13] Error: Function not registered: 'CreateDynamic3DTextLabel' [15:04:13] Script[gamemodes/gamemode.amx]: Run time error 19: "File or function is not found" [15:04:13] Number of vehicle models: 0 As fi foarte fericit daca miati zice dece imi da
  13. pune la inceputul gm-ului #pragma dynamic 500000
  14. Nurdock

    Ajutor

    nu exista comanda. daca nu ma crezi dami add skype gabi.moldovan88
  15. Nurdock

    Ajutor

    nu e cu comanda /enter e cu tasta F
  16. Nurdock

    Ajutor

    Problema intalnita (descriere):Cand ies din lspd imi apare totul alb pana setez interiorul pe 0. ce pot sa facEro(area / rile) / warning-(ul / urile):-Liniile de cod / sursa / script-ul(obligatoriu):va dau ce lini doritiImagini / Video (optional):-Ati incercat sa rezolvati singur?:Da
  17. Nurdock

    ReturnUser

    CMD:ajut(playerid, params[]) { if(IsPlayerConnected(playerid)) { new tmp[60], idx, sendername[MAX_PLAYER_NAME], string[196]; if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1) { GetPlayerName(playerid, sendername, sizeof(sendername)); tmp = strtok(params, idx); if(!strlen(tmp)) { SendUsage(playerid,"/ajut [playerid/PartOfName]"); return 1; } new idplayer; idplayer = ReturnUser(tmp); new numeplayer[64]; GetPlayerName(idplayer, numeplayer, sizeof(numeplayer)); if(IsPlayerConnected(idplayer)) { if(idplayer != INVALID_PLAYER_ID) { if(PlayerInfo[playerid][pAdmin] >= 1) { if(CalAjutor[idplayer] == 1) { format(string, sizeof(string), "AJUTOR REPORT: {FFFFFF}Adminul %s a preluat reportul lui %s.", sendername, numeplayer); HBroadCast(0xC90000FF, string); ABroadCast(0xC90000FF, string, 1); CalAjutor[idplayer] = 0; } } if(PlayerInfo[playerid][pHelper] >= 1) { if(CalAjutor[idplayer] == 1) { format(string, sizeof(string), "AJUTOR REPORT: {FFFFFF}Helper-ul %s va asista in cazul problemei tale trimise pe /report.", sendername); SendClientMessage(idplayer, 0xC90000FF, string); format(string, sizeof(string), "HAjut: {FFFFFF}Il vei ajuta pe %s. Pentru a te teleporta la el, foloseste /goto.", numeplayer); SendClientMessage(playerid, 0xC90000FF, string); format(string, sizeof(string), "AJUTOR REPORT: {FFFFFF}Helper-ul %s a raspuns cererii de ajutor a lui %s.", sendername, numeplayer); HBroadCast(0xC90000FF, string); ABroadCast(0xC90000FF, string,1); CalAjutor[idplayer] = 0; } } else { SendClientMessage(playerid, COLOR_WHITE, "{C90000}Info: {FFFFFF}Acest player nu a cerut ajutor!"); } } } else { SendClientMessage(playerid, COLOR_WHITE, "{C90000}Info: {FFFFFF}Acest jucator nu este conectat!"); } } else { SendClientMessage(playerid, COLOR_WHITE, "{C90000}Info: {FFFFFF}Nu esti autorizat sa folosesti aceasta comanda!"); } } return 1; }
×
×
  • 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.