Jump to content

KingZone

Membru
  • Posts

    64
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by KingZone

  1. Din pacate acest warning persista in tot gamemodul din cauza lui nu pot folosi sistemul de report vam mai spus cand apas pe alta problema la dialogul reportului zice ca nam cont e bine eu miam dat seama ca este de la acest warning am facut si solutia lui equinox si tot na mers am incercat si solutia lui Mister si tot na mers:( Reamintesc Warningul: warning 219: local variable "PlayerName" shadows a variable at a preceding level
  2. Da warningul acesta din tot gamemodul warning 219: local variable "PlayerName" shadows a variable at a preceding level Incerc sa modific Nume in Name ....... EDIT:Am modificat si tot asa imi arata. acelas warning.
  3. Problema intalnita (descriere):Primesc acest warning decand am adaugat in gmul meu functia stock Playername nu stiu ce sa mai putea face am incercat foarte multe dar in zadar aceas eroare vreau sa imi explicati daca se poate ce am gresit.Este vorba de un sistem de report cu comenzile /report=dialog cu obtiuni. Ero(area / rile) / warning-(ul / urile):warning 219: local variable "PlayerName" shadows a variable at a preceding level Liniile de cod / sursa / script-ul(obligatoriu): //======================Report System=========================================// #define DIALOG_REPORT 12345 // dialog report #define DIALOG_REPORTJUCATOR 23456 // dialog raporteaza jucator #define DIALOG_AJUTOR 23457 // dialog ajutor / probleme #define DIALOG_BUG 23458 // dialog semnaleaza bug #define DIALOG_INAPOI 23459 // dialog mesaj esti sigur ca vrei sa inchizi. #define DIALOG_BLOCAT 23460 // dialog mesaj esti sigur ca vrei sa inchizi #define DIALOG_VAD 23461 // dialog mesaj esti sigur ca vrei sa inchizi #define DIALOG_PIERDUT 23462 // dialog mesaj esti sigur ca vrei sa inchizi #define DIALOG_ALTA 23463 // dialog mesaj esti sigur ca vrei sa inchizi //Comenzi Report if(strcmp(cmd, "/report", true) == 0) { ShowPlayerDialog(playerid,DIALOG_REPORT,DIALOG_STYLE_LIST,"{0066FF}AfterSchool RPG {FFFFFF}Report {0066FF}System","{0066FF}1.{FFFFFF}Raporteaza un jucator.\n{0066FF}2.{FFFFFF}Ajutor / Probleme.\n{0066FF}3.{FFFFFF}Raporteaza un BUG.\n{0066FF}4.{FFFFFF}M-am blocat.\n{0066FF}5.{FFFFFF}Nu vad nimic.\n{0066FF}6.{FFFFFF}Am pierdut un bun personal.\n{0066FF}7.{FFFFFF}Alte probleme.","Select","Cancel"); return 1; } if(strcmp(cmd, "/openreport", true) == 0 || strcmp(cmd, "/opr", true) == 0) { if(IsPlayerConnected(playerid)) { if(P_DATA[playerid][pHelper] >= 1 || P_DATA[playerid][pAdmin] >= 1) { GetPlayerName(playerid, sendername, sizeof(sendername)); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{00FF00}Folosire:{FFFFFF}: /opr [playerid/PartOfName]"); return 1; } new idplayer; idplayer = ReturnUser(tmp); new numeplayer[182]; GetPlayerName(idplayer, numeplayer, sizeof(numeplayer)); if(IsPlayerConnected(idplayer)) { if(idplayer != INVALID_PLAYER_ID) { if (idplayer == playerid) { SendClientMessage(playerid, COLOR_WHITE, "Nu iti poti da /opr singur."); return 1; } if(GetPVarInt(idplayer, "Report") == 1) { format(string,sizeof(string),"** Administratorul{0066FF} %s {FFFFFF}a deschis reportul dvs.Live chat-ul a fost activat! Folositi (/rc).", sendername, numeplayer); SendClientMessage(idplayer,COLOR_WHITE,string); SendClientMessage(playerid,COLOR_WHITE,"[REPORT]: Reportul a fost deschis! Pentru a vorbi in live chat folositi {0066FF}(/ra)."); SetPVarInt(playerid,"LiveChat",1); SetPVarInt(idplayer,"LiveChat",1); SetPVarInt(idplayer,"Report",0); SetPVarInt(playerid,"RJucator",idplayer); SetPVarInt(idplayer,"RJucator",playerid); format(string, sizeof(string), "{0066FF}%s {B9E1EB}a raspuns cererii de ajutor a lui{0066FF} %s", sendername, numeplayer); ABroadCast(COLOR_YELLOW, string,1); } else { SendClientMessage(playerid, COLOR_GRAD1, "[Anti-Abuz] Acel player nu a cerut ajutor!"); } } } else { SendClientMessage(playerid, COLOR_GRAD1, "Acel jucator nu este conectat."); } } } return 1; } if(strcmp(cmd, "/closereport", true) == 0 || strcmp(cmd, "/cpr", true) == 0) { if(IsPlayerConnected(playerid)) { if(P_DATA[playerid][pHelper] >= 1 || P_DATA[playerid][pAdmin] >= 1) { GetPlayerName(playerid, sendername, sizeof(sendername)); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{00FF00}Folosire:{FFFFFF}: /cpr [playerid/PartOfName]"); return 1; } new idplayer; idplayer = ReturnUser(tmp); new numeplayer[182]; GetPlayerName(idplayer, numeplayer, sizeof(numeplayer)); if(IsPlayerConnected(idplayer)) { if(idplayer != INVALID_PLAYER_ID) { if (idplayer == playerid) { SendClientMessage(playerid, COLOR_WHITE, "Nu iti poti da /closereport singur."); return 1; } if(GetPVarInt(idplayer, "LiveChat") == 1) { format(string,sizeof(string),"** Administratorul{0066FF} %s {FFFFFF}a inchis reportul. O zi placuta !", sendername); SendClientMessage(idplayer,COLOR_WHITE,string); SendClientMessage(playerid,COLOR_WHITE,"[REPORT]: Reportul a fost inchis!"); SetPVarInt(playerid,"LiveChat",0); SetPVarInt(idplayer,"LiveChat",0); DeletePVar(playerid,"RJucator"); DeletePVar(idplayer,"RJucator"); ABroadCast(COLOR_YELLOW, string,1); CallReport[idplayer] = 0; } else { SendClientMessage(playerid, COLOR_GRAD1, "[Anti-Abuz] Acel player nu are un report deschis!"); } } } else { SendClientMessage(playerid, COLOR_GRAD1, "Acel jucator nu este conectat."); } } } return 1; } if(strcmp(cmd, "/stergereport", true) == 0 || strcmp(cmd, "/spr", true) == 0) { if(IsPlayerConnected(playerid)) { if(P_DATA[playerid][pAdmin] >= 7) { GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); new numeplayer[182]; while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[256]; new pID; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } if(GetPVarInt(playerid,"LiveChat") != 1) return SendClientMessage(playerid,COLOR_WHITE,"[REPORT]: Nu va aflati in live chat!"); result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD1, "{00FF00}Folosire:{FFFFFF} /stergereport [ID REPORT]"); return 1; } format(string,sizeof(string),"** Administratorul{0066FF} %s {FFFFFF}a sters reportul dvs. O zi placuta !", sendername, numeplayer); SendClientMessage(pID,COLOR_WHITE,string); SendClientMessage(playerid,COLOR_WHITE,"[REPORT]: Reportul a fost sters!"); DeletePVar(pID,"Report"); } } return 1; } if(strcmp(cmd, "/rc", true) == 0) { if(P_DATA[playerid][pHelper] >= 1 || P_DATA[playerid][pAdmin] >= 1) return SendClientMessage(playerid,COLOR_WHITE,"[REPORT]: Doar playerii pot folosi /rc!"); if(IsPlayerConnected(playerid)) { GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[256]; new string1[128]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } if(GetPVarInt(playerid,"LiveChat") != 1) return SendClientMessage(playerid,COLOR_WHITE,"[REPORT]: Nu va aflati in live chat!"); result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD1, "{00FF00}Folosire:{FFFFFF} /rc [text]"); return 1; } format(string,sizeof(string),"{3399FF}[Jucator]: %s: %s", sendername, result); SendClientMessage(GetPVarInt(playerid,"RJucator"),COLOR_WHITE,string); format(string1,sizeof(string1),"{3399FF}[Jucator]: %s: %s", sendername, result); SendClientMessage(playerid,COLOR_WHITE,string1); } return 1; } if(strcmp(cmd, "/ra", true) == 0) { if(P_DATA[playerid][pAdmin] < 1) return SendClientMessage(playerid,COLOR_WHITE,"[REPORT]: Doar adminii pot folosi /ra!"); if(IsPlayerConnected(playerid)) { GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[256]; new string1[128]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } if(GetPVarInt(playerid,"LiveChat") != 1) return SendClientMessage(playerid,COLOR_WHITE,"[REPORT]: Nu va aflati in live chat!"); result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD1, "{00FF00}Folosire:{FFFFFF} /ra [text]"); return 1; } format(string,sizeof(string),"{3399FF}[Administrator]: {2288bb}%s: {FFFFFF}%s", sendername, result); SendClientMessage(GetPVarInt(playerid,"RJucator"),COLOR_WHITE,string); format(string1,sizeof(string1),"{3399FF}[Administrator]: {2288bb}%s: {FFFFFF}%s", sendername, result); SendClientMessage(playerid,COLOR_WHITE,string1); } return 1; } if(strcmp(cmd, "/reporthelp", true) == 0) { if (P_DATA[playerid][pAdmin] >= 1 || P_DATA[playerid][pHelper] >= 1) { SendClientMessage(playerid,COLOR_WHITE,"|_________{0066FF}Report Help:{FFFFFF}_________|"); SendClientMessage(playerid,COLOR_WHITE,"{0066FF}Report Help:{FFFFFF} /ra - Vorbesti in live chat"); SendClientMessage(playerid,COLOR_WHITE,"{0066FF}Report Help:{FFFFFF} /closereport - Inchide report"); SendClientMessage(playerid,COLOR_WHITE,"{0066FF}Report Help:{FFFFFF} /openreport - Deschide report / live chat"); SendClientMessage(playerid,COLOR_WHITE,"{0066FF}Report Help:{FFFFFF} /stergereport - Stergi un report"); SendClientMessage(playerid,COLOR_WHITE,"{0066FF}Report Help:{FFFFFF} /reports - Lista reporturi"); return 1; } } if(strcmp(cmd, "/reports", true) == 0) { if(P_DATA[playerid][pAdmin] >= 1 || P_DATA[playerid][pHelper] >= 1) { if(IsPlayerConnected(playerid)) { for(new i = 0; i < MAX_PLAYERS; i++) { if(GetPVarInt(i,"Report") == 1 && IsPlayerConnected(i)) { SendClientMessage(playerid,COLOR_WHITE,"|_________{0066FF}Report List:{FFFFFF}_________|"); format(string,sizeof(string),"[DESCHIS] Nume: %s | ID: %i",PlayerName(i), i); SendClientMessage(playerid,COLOR_WHITE,string); } } } } return 1; } //Dialoguri Report. //Dialog System Report if(dialogid == DIALOG_REPORT) { if(response == 1) { if(listitem == 0) { ShowPlayerDialog(playerid,DIALOG_REPORTJUCATOR,DIALOG_STYLE_INPUT,"{0066FF}Raporteaza {FFFFFF}un {0066FF}jucator:","Spuneti-ne cateva detalii despre jucator si numele acestuia.","Select","Cancel"); return 1; } if(listitem == 1) { ShowPlayerDialog(playerid,DIALOG_AJUTOR,DIALOG_STYLE_INPUT,"{0066FF}Ajutor {FFFFFF}/ {0066FF}probleme:","Ce problema aveti?","Select","Cancel"); return 1; } if(listitem == 2) { ShowPlayerDialog(playerid,DIALOG_BUG,DIALOG_STYLE_INPUT,"{0066FF}Raporteaza {FFFFFF}un BUG:","Despre ce bug este vorba?","Select","Cancel"); return 1; } if(listitem == 3) { ShowPlayerDialog(playerid,DIALOG_BLOCAT,DIALOG_STYLE_INPUT,"{0066FF}Probleme {FFFFFF}tehnice:","M-am blocat!","Trimite","Cancel"); return 1; } if(listitem == 4) { ShowPlayerDialog(playerid,DIALOG_VAD,DIALOG_STYLE_INPUT,"{0066FF}Probleme {FFFFFF}tehnice:","Nu vad nimic!","Trimite","Cancel"); return 1; } if(listitem == 5) { ShowPlayerDialog(playerid,DIALOG_PIERDUT,DIALOG_STYLE_INPUT,"{0066FF}Probleme {FFFFFF}tehnice:","Scrie mai jos TOT MESAJUl in functie de problema ta.","Trimite","Cancel"); return 1; } if(listitem == 6) { ShowPlayerDialog(playerid,DIALOG_ALTA,DIALOG_STYLE_INPUT,"{0066FF}Alte {FFFFFF}probleme!:","Scrie mai jos TOT MESAJUl in functie de problema.","Trimite","Cancel"); return 1; } } if(response == 0) { ShowPlayerDialog(playerid,DIALOG_INAPOI,DIALOG_STYLE_MSGBOX,"{0066FF}AfterSchool RPG {FFFFFF}REPORTS - Inchidere","Esti sigur ca vrei sa inchizi reportul?","Da","Inapoi"); return 1; } } //========Next Function==================// if(dialogid == DIALOG_REPORTJUCATOR) { if(response == 1) { new string[128]; 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})",PlayerName(playerid),inputtext); RBroadCast(COLOR_LIGHTBLUE,string,1); SetPVarInt(playerid,"Report",1); } if(response == 0) { ShowPlayerDialog(playerid,DIALOG_INAPOI,DIALOG_STYLE_MSGBOX,"{0066FF}AfterSchool RPG {FFFFFF}REPORTS - Inchidere","Esti sigur ca vrei sa inchizi reportul?","Da","Inapoi"); } } if(dialogid == DIALOG_AJUTOR) { if(response == 1) { new string[128]; 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})",PlayerName(playerid),inputtext); RBroadCast(COLOR_LIGHTBLUE,string,1); SetPVarInt(playerid,"Report",1); } if(response == 0) { ShowPlayerDialog(playerid,DIALOG_INAPOI,DIALOG_STYLE_MSGBOX,"{0066FF}AfterSchool RPG {FFFFFF}REPORTS - Inchidere","Esti sigur ca vrei sa inchizi reportul?","Da","Inapoi"); } } if(dialogid == DIALOG_BUG) { if(response == 1) { new string[128]; 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})",PlayerName(playerid),inputtext); RBroadCast(COLOR_LIGHTBLUE,string,1); SetPVarInt(playerid,"Report",1); } if(response == 0) { ShowPlayerDialog(playerid,DIALOG_INAPOI,DIALOG_STYLE_MSGBOX,"{0066FF}AfterSchool RPG {FFFFFF}REPORTS - Inchidere","Esti sigur ca vrei sa inchizi reportul?","Da","Inapoi"); } } if(dialogid == DIALOG_BLOCAT) { if(response == 1) { new string[128]; SendClientMessage(playerid,COLOR_WHITE,"SERVER: Reportul M-AM BLOCAT a fost trimis!"); format(string,sizeof(string),"[REPORT]: {7a0f27}%s{FFFFFF} s-a blocat!)",PlayerName(playerid),inputtext); RBroadCast(COLOR_LIGHTBLUE,string,1); SetPVarInt(playerid,"Report",1); } if(response == 0) { ShowPlayerDialog(playerid,DIALOG_INAPOI,DIALOG_STYLE_MSGBOX,"{0066FF}AfterSchool RPG {FFFFFF}REPORTS - Inchidere","Esti sigur ca vrei sa inchizi reportul?","Da","Inapoi"); } } if(dialogid == DIALOG_VAD) { if(response == 1) { new string[128]; SendClientMessage(playerid,COLOR_WHITE,"SERVER: Reportul NU VAD NIMIC a fost trimis!"); format(string,sizeof(string),"[REPORT]: {7a0f27}%s{FFFFFF} nu vede nimic!)",PlayerName(playerid),inputtext); RBroadCast(COLOR_LIGHTBLUE,string,1); SetPVarInt(playerid,"Report",1); } if(response == 0) { ShowPlayerDialog(playerid,DIALOG_INAPOI,DIALOG_STYLE_MSGBOX,"{0066FF}AfterSchool RPG {FFFFFF}REPORTS - Inchidere","Esti sigur ca vrei sa inchizi reportul?","Da","Inapoi"); } } if(dialogid == DIALOG_PIERDUT) { if(response == 1) { new string[128]; SendClientMessage(playerid,COLOR_WHITE,"SERVER: Reportul dumneavostra a fost trimis!"); format(string,sizeof(string),"[REPORT]: {7a0f27}%s{FFFFFF} a pierdut un bun personal! : {7a0f27}({FFFFFF} %s {7a0f27})",PlayerName(playerid),inputtext); RBroadCast(COLOR_LIGHTBLUE,string,1); SetPVarInt(playerid,"Report",1); } if(response == 0) { ShowPlayerDialog(playerid,DIALOG_INAPOI,DIALOG_STYLE_MSGBOX,"{0066FF}AfterSchool RPG {FFFFFF}REPORTS - Inchidere","Esti sigur ca vrei sa inchizi reportul?","Da","Inapoi"); } } if(dialogid == DIALOG_ALTA) { if(response == 1) { new string[128]; SendClientMessage(playerid,COLOR_WHITE,"SERVER: Reportul dumneavostra a fost trimis!"); format(string,sizeof(string),"[REPORT]: {7a0f27}%s{FFFFFF} are o problema! : {7a0f27}({FFFFFF} %s {7a0f27})",PlayerName(playerid),inputtext); RBroadCast(COLOR_LIGHTBLUE,string,1); SetPVarInt(playerid,"Report",1); } if(response == 0) { ShowPlayerDialog(playerid,DIALOG_INAPOI,DIALOG_STYLE_MSGBOX,"{0066FF}AfterSchool RPG {FFFFFF}REPORTS - Inchidere","Esti sigur ca vrei sa inchizi reportul?","Da","Inapoi"); } } if(dialogid == DIALOG_INAPOI) { if(response == 0) { ShowPlayerDialog(playerid,DIALOG_REPORT,DIALOG_STYLE_LIST,"{0066FF}AfterSchool RPG {FFFFFF}REPORTS","{0066FF}1.{FFFFFF}Raporteaza un jucator.\n{0066FF}2.{FFFFFF}Ajutor / Probleme.\n{0066FF}3.{FFFFFF}Raporteaza un BUG.\n{0066FF}4.{FFFFFF}M-am blocat.\n{0066FF}5.{FFFFFF}Nu vad nimic.\n{0066FF}6.{FFFFFF}Am pierdut un bun personal.\n{0066FF}7.{FFFFFF}Alte probleme.","Select","Cancel"); } return 1; } //Functia stock de la care pleaca toate warningurile. stock PlayerName( playerid ) { new Name[MAX_PLAYER_NAME]; GetPlayerName( playerid, Name, sizeof( Name ) ); return Name; } ===>De la aceasta functie stock pleaca toate warningurile in tot gamemodul ex am testat sistemu de report si cand am apasat pe functia "Alta Problema" Mia aratat ca nu detin un cont pe server dar eu aveam asa ceva si eu am dedus ca toata problema placa de la aceasta functie Am zis sa postez aici tot sa vedeti exact. Imagini / Video (optional): Ati incercat sa rezolvati singur?:Da am incercat sa modific acea functie stock sa folosesc altceva compatibil adica ce gmul meu cunostea dar nu am reusit tot aceas problema .......Vam lasat cod-ul cu sistemul de report pe dialog.....Sper sa ma puteti ajuta Fara jigniri cum ca nu stii sa scriptezi sau altele eu imi dau silinta Vorba aceea nimeni nu sa nascut stiutor!!
  4. KingZone

    Gm Briston

    Pune absolut tot ce este in plugins cu extensia .so iar apoi intra in baza de date a gamemodului bristongov si modifica database cu numele bazei tale de date.
  5. Problema intalnita (descriere):definire giveplayer Ero(area / rile) / warning-(ul / urile):undefined giveplayer Liniile de cod / sursa / script-ul(obligatoriu): CMD:staff(playerid, params[]) return cmd_astaff(playerid, params); CMD:astaff(playerid, params[]) { if(playerVariables[playerid][pAdminLevel] > 6) { SendClientMessage(playerid, COLOR_WHITE, "|______________ Staff AfterSchool ______________|"); foreach(Player, i) { if(playerVariables[i][pHelper] >= 1) { GetPlayerName(i, giveplayer, sizeof(giveplayer)); format(szMessage, sizeof(string), "* {0099FF}Helper %d %s {FFFFFF}- Playeri ajutati:[%d],Ore Helper:[%d],Total Ore:[%d]",playerVariables[i][pHelper],giveplayer,playerVariables[i][pPLA],playerVariables[i][pHadm],playerVariables[i][pConnectTime]); SendClientMessage(playerid, COLOR_WHITE, szMessage); //return 1; } if(playerVariables[i][pAdminLevel] == 1) { GetPlayerName(i, giveplayer, sizeof(giveplayer)); format(szMessage, sizeof(string), "* {0099FF}Admin 1 %s {FFFFFF}- Playeri ajutati:[%d],Ore Admin:[%d],Total Ore:[%d]",giveplayer,playerVariables[i][pPLA],playerVariables[i][pHadm],playerVariables[i][pConnectTime]); SendClientMessage(playerid, COLOR_WHITE, szMessage); //return 1; } if(playerVariables[i][pAdminLevel] == 2) { GetPlayerName(i, giveplayer, sizeof(giveplayer)); format(szMessage, sizeof(szMessage), "* {0099FF}Admin 2 %s {FFFFFF}- Playeri ajutati:[%d],Ore Admin:[%d],Total Ore:[%d]",giveplayer,playerVariables[i][pPLA],playerVariables[i][pHadm],playerVariables[i][pConnectTime]); SendClientMessage(playerid, COLOR_WHITE, szMessage); //return 1; } if(playerVariables[i][pAdminLevel] == 3) { GetPlayerName(i, giveplayer, sizeof(giveplayer)); format(szMessage, sizeof(szMessage), "* {0099FF}Admin 3 %s {FFFFFF}- Playeri ajutati:[%d],Ore Admin:[%d],Total Ore:[%d]",giveplayer,playerVariables[i][pPLA],playerVariables[i][pHadm],playerVariables[i][pConnectTime]); SendClientMessage(playerid, COLOR_WHITE, szMessage); //return 1; } if(playerVariables[i][pAdminLevel] == 4) { GetPlayerName(i, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "* {0099FF}Admin 4 %s {FFFFFF}- Playeri ajutati:[%d],Ore Admin:[%d],Total Ore:[%d]",giveplayer,playerVariables[i][pPLA],playerVariables[i][pHadm],playerVariables[i][pConnectTime]); SendClientMessage(playerid, COLOR_WHITE, szMessage); //return 1; } if(playerVariables[i][pAdminLevel] == 5) { GetPlayerName(i, giveplayer, sizeof(giveplayer)); format(szMessage, sizeof(szMessage), "* {0099FF}Admin 5 %s {FFFFFF}- Playeri ajutati:[%d],Ore Admin:[%d],Total Ore:[%d]",giveplayer,playerVariables[i][pPLA],playerVariables[i][pHadm],playerVariables[i][pConnectTime]); SendClientMessage(playerid, COLOR_WHITE, szMessage); //return 1; } if(playerVariables[i][pAdminLevel] == 6) { GetPlayerName(i, giveplayer, sizeof(giveplayer)); format(string, sizeof(szMessage), "* {0099FF}Admin 6 %s {FFFFFF}- Playeri ajutati:[%d],Ore Admin:[%d],Total Ore:[%d]",giveplayer,playerVariables[i][pPLA],playerVariables[i][pHadm],playerVariables[i][pConnectTime]); SendClientMessage(playerid, COLOR_WHITE, szMessage); //return 1; } if(playerVariables[i][pAdminLevel] == 7) { GetPlayerName(i, giveplayer, sizeof(giveplayer)); format(string, sizeof(szMessage), "* {0099FF}Admin 7 %s {FFFFFF}- Playeri ajutati:[%d],Ore Admin:[%d],Total Ore:[%d]",giveplayer,playerVariables[i][pPLA],playerVariables[i][pHadm],playerVariables[i][pConnectTime]); SendClientMessage(playerid, COLOR_WHITE, szMessage); //return 1; } if(playerVariables[i][pAdminLevel] == 8) { GetPlayerName(i, giveplayer, sizeof(giveplayer)); format(string, sizeof(szMessage), "* {0099FF}Admin 8 %s {FFFFFF}- Playeri ajutati:[%d],Ore Admin:[%d],Total Ore:[%d]",giveplayer,playerVariables[i][pPLA],playerVariables[i][pHadm],playerVariables[i][pConnectTime]); SendClientMessage(playerid, COLOR_WHITE, szMessage); //return 1; } } } else { SendClientMessage(playerid, COLOR_GREY, "Nu poti utiliza aceasta comanda ! "); } return 1; } Imagini / Video (optional): Ati incercat sa rezolvati singur?:Da dar nam reusit!
  6. Problema intalnita (descriere):Compilare amx pe 0 Am adaugat FS-UL CU Actori in Gamemode-ul OnGame Postat de Bradu Razvan iar cand lam scos gamemodul nu sa compilat corespunzator adica gamemodul se compila pe 0 nu se compila corect Mentionez ca am scos tot fs-ul cu Actori din el nu mai este nimic din contra am inceput sa inchid si cateva functii create de mine in speranta ca va merge sper sa ma puteti ajuta. Ero(area / rile) / warning-(ul / urile):Compilare amx pe 0 mentionez ca nam backup facut la gamemode...................:( Liniile de cod / sursa / script-ul(obligatoriu): Imagini / Video (optional): Ati incercat sa rezolvati singur?:Da dar nam reusit! Problema intalnita (descriere): Ero(area / rile) / warning-(ul / urile): Liniile de cod / sursa / script-ul(obligatoriu): Imagini / Video (optional): Ati incercat sa rezolvati singur?:
  7. Cum adica alt timer de 1 secunda Mister eu vreau sa fac ca skinul din stanga sa se salveze te rog frumos fi putin mai explicit.
  8. Nu am aceste doua lucruri in gamemode......Nu leam gasit! Ce as putea face ?
  9. Problema intalnita (descriere):Salut am o problema cu textdraw-ul jucatorului de langa minimap odata ce primesti /respawn pe server sau iesi si reintri primesti un altskin de puscarias deci pe scurt nu se salveaza skinul respectiv pe care ti lai luat pe server Un admin iti da skinul 95 si tu daca iesi si reintri nu mai ai de loc acel skin ai skin de puscarias. Ero(area / rile) / warning-(ul / urile): --->Am detaliat mai sus care este treaba! Liniile de cod / sursa / script-ul(obligatoriu): new PlayerText:SkinPreview[MAX_PLAYERS]; // * Skin in stanga * // SkinPreview[playerid] = CreatePlayerTextDraw(playerid,-34.000000, 365.000000, "_"); PlayerTextDrawBackgroundColor(playerid,SkinPreview[playerid], 0); PlayerTextDrawFont(playerid,SkinPreview[playerid], 5); PlayerTextDrawLetterSize(playerid,SkinPreview[playerid], 0.749998, 1.899999); PlayerTextDrawColor(playerid,SkinPreview[playerid], -1); PlayerTextDrawSetOutline(playerid,SkinPreview[playerid], 0); PlayerTextDrawSetProportional(playerid,SkinPreview[playerid], 1); PlayerTextDrawSetShadow(playerid,SkinPreview[playerid], 1); PlayerTextDrawUseBox(playerid,SkinPreview[playerid], 1); PlayerTextDrawBoxColor(playerid,SkinPreview[playerid], 0); PlayerTextDrawTextSize(playerid,SkinPreview[playerid], 106.000000, 72.000000); PlayerTextDrawSetPreviewModel(playerid, SkinPreview[playerid], 0); PlayerTextDrawSetPreviewRot(playerid, SkinPreview[playerid], -8.000000, 0.000000, 15.000000, 1.000000); PlayerTextDrawSetSelectable(playerid,SkinPreview[playerid], 0); Imagini / Video (optional): Ati incercat sa rezolvati singur?:Desigur ca am incercat dar nu a dat roade......Astept sa imi spuneti ce trebuie sa va mai arat din acest script "textdraw-ul jucatorului de langa minimap"
  10. Salut sa-mp.ro vin si eu astazi cu o mica problema sper sa puteti sa ma ajutati pe un gamemode conceput de mine am un textdraw cu skin-ul playerului e bine acesta nu se salveaza. Ceva sugesti ? va rog ?
  11. Salut prietenii am observat ca gamemode postat de Bradu Razvan a disparut am reusit sal descarc dar nam reusit sa iau baza de date ....Care dintre voi o aveti va rog sa mi-o dati si mie am inceput sa lucrez serios la acest gm Multumesc!
  12. Am rezolvat! Moderatori pot da topic closed! Multumesc mult pt sprijin!
  13. Folosesc gamemodul redzmax edit.....(SRF RPG) .............. Lucrez de ceva timp la el lam avut si postat la sectiunea gamemoduri dar apoi l-am retras......am zis ca voi lucra mai mult la el si il voi folosi.
  14. Buna ziua membri ai sa-mp ro .......folosesc un gamemode redzmax edit dar este o mica problema nu am enum-ul pInfo nu pot sa definesc obtiuni precum pAdmin,pStatus,...pMembers si asa mai departe......Cum fac sa creez acel enum .......Stiu ca nam respectat modelul .............
  15. Problema intalnita (descriere):Problema la definirea symbolurilor houses si HouseInfo in vortex Ero(area / rile) / warning-(ul / urile): error 017: undefined symbol "HouseInfo",error 017: undefined symbol "houses Liniile de cod / sursa / script-ul(obligatoriu): CMD:aedit(playerid, params[], help) { if(playerVariables[playerid][pAdminLevel] < 6) return SendClientMessage(playerid, COLOR_WHITE, AdminOnly); new name[64],amount,string[512]; if(sscanf(params, "s[64]i", name, amount)) { SendUsage(playerid,"/aedit <name> <amount>"); SendUsage(playerid,"Available names: Level, Price, Funds, Products"); } else { for(new i = 1; i <= houses; i++) { if (PlayerToPoint(3, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez])) { format(string, sizeof(string), "House: %d", i); SendClientMessage(playerid, COLOR_YELLOW2, string); if(amount > 0) { if(strcmp(name,"level",true) == 0) { HouseInfo[i][hLevel] = amount; new str2[512]; mysql_format(SQL, str2,512,"UPDATE `houses` SET `Level`='%d' WHERE `ID`='%d'",HouseInfo[i][hLevel],HouseInfo[i][hID]); mysql_tquery(SQL, str2, "", ""); OnPropTextdrawUpdate(1, i); } else if(strcmp(name,"price",true) == 0) { HouseInfo[i][hValue] = amount; new str2[512]; mysql_format(SQL, str2,512,"UPDATE `houses` SET `Value`='%d' WHERE `ID`='%d'",HouseInfo[i][hValue],HouseInfo[i][hID]); mysql_tquery(SQL, str2, "", ""); OnPropTextdrawUpdate(1, i); } } } } for(new i = 1; i <= bizzs; i++) { if (PlayerToPoint(3, playerid,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ])) { format(string, sizeof(string), "Biz: %d", i); SendClientMessage(playerid, COLOR_YELLOW2, string); if(amount > 0) { if(strcmp(name,"level",true) == 0) { BizzInfo[i][bLevelNeeded] = amount; new Query[128]; mysql_format(SQL, Query,128,"UPDATE `bizz` SET `LevelNeeded`='%d' WHERE `ID`='%d'",BizzInfo[i][bLevelNeeded],BizzInfo[i][bID]); mysql_tquery(SQL, Query, "", ""); OnPropTextdrawUpdate(2, i); } else if(strcmp(name,"price",true) == 0) { BizzInfo[i][bBuyPrice] = amount; new Query[128]; mysql_format(SQL, Query,128,"UPDATE `bizz` SET `BuyPrice`='%d' WHERE `ID`='%d'",BizzInfo[i][bBuyPrice],BizzInfo[i][bID]); mysql_tquery(SQL, Query, "", ""); OnPropTextdrawUpdate(2, i); } else if(strcmp(name,"funds",true) == 0) { BizzInfo[i][bTill] = amount; new Query[128]; mysql_format(SQL, Query,128,"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='%d'",BizzInfo[i][bTill],BizzInfo[i][bID]); mysql_tquery(SQL, Query, "", ""); OnPropTextdrawUpdate(2, i); } else if(strcmp(name,"products",true) == 0) { BizzInfo[i][bProducts] = amount; new Query[128]; mysql_format(SQL, Query,128,"UPDATE `bizz` SET `Products`='%d' WHERE `ID`='%d'",BizzInfo[i][bProducts],BizzInfo[i][bID]); mysql_tquery(SQL, Query, "", ""); OnPropTextdrawUpdate(2, i); } } } } for(new i = 1; i <= sbizzs; i++) { if (PlayerToPoint(3, playerid,SBizzInfo[i][sbEntranceX], SBizzInfo[i][sbEntranceY], SBizzInfo[i][sbEntranceZ])) { format(string, sizeof(string), "SBiz: %d", i); SendClientMessage(playerid, COLOR_YELLOW2, string); if(amount > 0) { if(strcmp(name,"level",true) == 0) { SBizzInfo[i][sbLevelNeeded] = amount; new Query [ 256 ] ; mysql_format(SQL, Query,256,"UPDATE `sbizz` SET `LevelNeeded`='%d' WHERE `ID`='%d'",SBizzInfo[i][sbLevelNeeded],SBizzInfo[i][sbID]); mysql_tquery(SQL, Query, "", ""); OnPropTextdrawUpdate(3, i); } else if(strcmp(name,"price",true) == 0) { SBizzInfo[i][sbBuyPrice] = amount; new Query [ 256 ] ; mysql_format(SQL, Query,256,"UPDATE `sbizz` SET `BuyPrice`='%d' WHERE `ID`='%d'",SBizzInfo[i][sbBuyPrice],SBizzInfo[i][sbID]); mysql_tquery(SQL, Query, "", ""); OnPropTextdrawUpdate(3, i); } else if(strcmp(name,"funds",true) == 0) { SBizzInfo[i][sbTill] = amount; new Query [ 256 ] ; mysql_format(SQL, Query,256,"UPDATE `sbizz` SET `Till`='%d' WHERE `ID`='%d'",SBizzInfo[i][sbTill],SBizzInfo[i][sbID]); mysql_tquery(SQL, Query, "", ""); OnPropTextdrawUpdate(3, i); } else if(strcmp(name,"products",true) == 0) { SBizzInfo[i][sbProducts] = amount; new Query [ 256 ] ; mysql_format(SQL, Query,256,"UPDATE `sbizz` SET `Products`='%d' WHERE `ID`='%d'",SBizzInfo[i][sbProducts],SBizzInfo[i][sbID]); mysql_tquery(SQL, Query, "", ""); OnPropTextdrawUpdate(3, i); } } } } } return 1; } Imagini / Video (optional): Am precizat mai sus! Ati incercat sa rezolvati singur?: Desigur! Am incercat definirea acestora dar nu a mers.
  16. Salut Am incercat sa pun pe host gamemodul hard-roleplay ce am facut ? 1.Am intrat in gamemode si am pus datele de la hostul meu 2.Am compilat gamemodul compilarea fiind una de succes! 3.Am intrat in ftp si am adaugat tot inafara de pwn-ul serverului 4.Am intrat server.cfg si am pus pluginurile pe extensia.so 5.Am intrat in phpmyadmin si am urcat baza de date ______________________________________________ Am observat ca tot unknown da am dat 100 de restarturi:))) dar tot asa se intampla!
  17. Salut Dragi mei am si eu o mica problema si vreau sa o adresez aici Am gamemodul lui EquinoX(Hard-Roleplay) postat aici vreau sa stiu dece da unknown cand il pun pe host pluginurile cred ca sunt in regula baza de date o import cum trebuie am pus datele corecte in gamemode sunt alte pluginuri Va rog ajutatima! dati link orice! raman indatorat si voua!
  18. La Server.cfg mai jos la gamemode0 pui vx-rp 1 ce inseamna 1 ? 1=Inseamna ca gamemodul este activ! Urmatorul pas trebuie sa conectezi gamemodul la phpmyadmin! (Deci iti trebuie host) Si dupa poti juca pe el +Admin va dati din baza de date nu am implementat Sistem-ul de Manageri! Multumesc!
  19. KingZone

    Ajutor

    In gamemode am erorile astea va rog ajutor C:Documents and SettingsNicu-PCDesktopVirtual RPGgamemodesvx-rp.pwn(18130) : error 029: invalid expression, assumed zero C:Documents and SettingsNicu-PCDesktopgamemodes(18130) : error 001: expected token: ",", but found "return" C:Documents and SettingsNicu-PCDesktopVirtual RPGgamemodes(18131) : error 076: syntax error in the expression, or invalid function call C:Documents and SettingsNicu-PCDesktopVirtual RPGgamemodes(18132) : error 029: invalid expression, assumed zero C:Documents and SettingsNicu-PCDesktopVirtual RPGgamemodes(18132) : warning 215: expression has no effect C:Documents and SettingsNicu-PCDesktopVirtual RPGgamemodes(18132) : error 001: expected token: ";", but found "]" C:Documents and SettingsNicu-PCDesktopVirtual RPGgamemodes(18132) : error 029: invalid expression, assumed zero C:Documents and SettingsNicu-PCDesktopVirtual RPGgamemodesv18132) : fatal error 107: too many error messages on one line Comenzile sunt aceastea CMD:acolinda(playerid,params[]) { new stringC[128]; if(sscanf(params, "u", suma)) return SendClientMessage(playerid, 0xFF0000AA, "USAGE: /acolinda [suma]"); if(colinda == 0) return SendClientMessage(playerid,-1,"Nimeni nu vrea sa te colinde"); else { format(stringC, sizeof(stringC), "a acceptat colinda"); SendPlayerMessageToPlayer(IDT,playerid,stringC); PlayAudioStreamForPlayer(IDT,"http://k003.kiwi6.com/hotlink/y1sudszr8h/Jingle_Bell_Rock-_Lyrics.mp3"); GivePlayerMoney(IDT,-20); } return 1; } CMD:colinda(playerid,params[]) { new stringC[128]; GetPlayerName(playerid, IDC, sizeof(IDC)); if(sscanf(params, "u",) return SendClientMessage(playerid, 0xFF0000AA, "USAGE: /colinda [ID]"); if(!IsPlayerConnected) return SendClientMessage(playerid, -1, "Playerul nu este conectat !"); if([playerid] == playerid) return SendClientMessage(playerid, -1, "Nu poti sa te colinzi singur"); else { format(stringC, sizeof(stringC), "vrea sa te colinde"); SendPlayerMessageToPlayer(playerid,stringC); colinda=1; } return 1; }
  20. Am ajutat si eu la acest gamemode! dupa ce ca va ofer acest gamemode mai si comentati putin respect! va rog!
  21. Nu va pot da Panelul si Multumesc Sima si voua!
  22. o sa dau Edit la Link-uri sa fie fara virus!
  23. Macar noi am incercat sa facem ceva frumos! din acest Vortex noi nu am scriptat pe E-like-uri buguite de pe internet am facut pe vortex rp original! Editul a inceput de pe 04 08 2014 scrie si in gm!
  24. Asta e acum imi dau seama ca se vor deschide multe servere dar oricum sunt niste cadouri pe acolo in care uni nu pot sa le gaseasca!
×
×
  • 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.