Jump to content

qStroKe

Membru
  • Posts

    21
  • Joined

  • Last visited

Everything posted by qStroKe

  1. Buna. Recent am observat pe gamemode-ul pe care am inceput sa-l modific ca orice kill apare in kill list-ul din dreapta chiar daca nu e war si etc. https://pastebin.com/SisbUc7iaici este onplayerdeath daca ati mai intalnit aceasta problema si stiti cum sa o rezolvati va rog sa imi dati un sfat, multumesc anticipat.
  2. Multi playeri baga boti cu un program... imi puteti da un sistem cu care sa impiedic acest lucru?
  3. CMD:accept(playerid, params[]) { if(PinLogged[playerid] == 0)return SCM(playerid, COLOR_LIGHTRED,"Trebuie sa introduci pin-ul mai intai.(/pin)"); if(IsPlayerConnected(playerid)) { new x_job[256], id, sendername[25], giveplayer[25], string[300], tmpcar = GetPlayerVehicleID(playerid), ccar = IsPlayerInAnyVehicle(playerid); if(sscanf(params, "s[256]u",x_job,id)) { SendClientMessage(playerid, COLOR_WHITE, "{FFFFFF}Syntax: {FFFFFF}/accept <Name> <Name/Playerid>"); SendClientMessage(playerid, COLOR_WHITE, "Available names: Drugs, Repair, House, Materials, Dice, Fight."); SendClientMessage(playerid, COLOR_WHITE, "Available names: Vehicle, Taxi, Medic, Live, Lawyer, Carrace."); SendClientMessage(playerid, COLOR_WHITE, "Available names: Mechanic, Ticket, Refill, Invite, Free."); return 1; } if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}Error: Player not connected."); if(strcmp(x_job,"dice",true) == 0) { if(!IsPlayerInRangeOfPoint(playerid,50.0,1977.7538,1017.7076,994.4688)) return SCM(playerid,COLOR_WHITE,"You can use this command only in casinos."); if(id == playerid) return SCM(playerid, -1, "Nu poti juca cu tine insuti."); if(IsPlayerConnected(id)) { new Float:PozitieID[3]; GetPlayerPos(id, PozitieID[0], PozitieID[1], PozitieID[2]); if(!IsPlayerInRangeOfPoint(playerid, 3.0, PozitieID[0], PozitieID[1], PozitieID[2])) return SCM(playerid, -1, "Acel jucator nu este langa tine."); BarbutTDStatus(playerid,id, true); } return 1; }
  4. pai nu ca nu functioneaza comanda cum trebuie... nici nu merge daca apr alea...
  5. Apare la final o faza cu zaurile ca in acea poza si nu inteleg de ce.. nu ar trebui sa apara
  6. deci imi dau dau /accept dice id cand un player face asta dar la final apare faza aia cu zarurile si nu e in gm... chiar nu inteleg de la ce este...
  7. am facut asta dude si tot nu merge stai calm:)
  8. Problema intalnita (descriere):Am bagat o noua comanda si imi da diferite erori si chiarnu inteleg cum trebuie sa le rezolv...Ero(area / rile) / warning-(ul / urile):C:\Users\StroKe\Desktop\Programe inutile\Gamemode\gamemodes\stroke.pwn(25253) : error 017: undefined symbol "playerVariables" C:\Users\StroKe\Desktop\Programe inutile\Gamemode\gamemodes\stroke.pwn(25253) : warning 215: expression has no effect C:\Users\StroKe\Desktop\Programe inutile\Gamemode\gamemodes\stroke.pwn(25253) : error 001: expected token: ";", but found "]" C:\Users\StroKe\Desktop\Programe inutile\Gamemode\gamemodes\stroke.pwn(25253) : error 029: invalid expression, assumed zero C:\Users\StroKe\Desktop\Programe inutile\Gamemode\gamemodes\stroke.pwn(25253) : fatal error 107: too many error messages on one line Liniile de cod / sursa / script-ul(obligatoriu):if(playerVariables [playerid][pGroupRank] == 7) ( linia cu problema ) CMD:givesalary(playerid, params[]) { new id; if(sscanf(params, "u", id)) return SendClientMessage(playerid, -1, "Syntax: /givesalary [playerid]"); if(playerVariables [playerid][pGroupRank] == 7) { if(id != INVALID_PLAYER_ID) { if(playerVariables[id][pSalary] >= 1) { if(playerVariables[playerid][pGroup] == playerVariables[id][pGroup]) { if(playerVariables[id][pGroup] == 1) { new RandPay; new string[256]; RandPay = (playerVariables[id][pSalary] * 3) * (playerVariables[id][pLevel] * 100) + 50000 + random(10000); playerVariables[id][pMoney] += RandPay; format(string, sizeof(string), "%s has gave salary to %s ($%s) for (%d paydays online)", playerVariables[playerid][pNormalName], playerVariables[id][pNormalName], NumberFormat(RandPay), playerVariables[id][pSalary]); SendToGroup(1, COLOR_TEAL, string); groupVariables[playerVariables[playerid][pGroup]][gSafe][0] -= RandPay; playerVariables[id][pSalary] = 0; } else if(playerVariables[id][pGroup] == 2) { new RandPay; new string[256]; RandPay = (playerVariables[id][pSalary]) * (playerVariables[id][pGroupRank]) * (playerVariables[id][pLevel]) * 100 + 50000 + random(10000); playerVariables[id][pMoney] += RandPay; format(string, sizeof(string), "%s has gave salary to %s ($%s) for (%d paydays online)", playerVariables[playerid][pNormalName], playerVariables[id][pNormalName], NumberFormat(RandPay), playerVariables[id][pSalary]); SendToGroup(2, COLOR_TEAL, string); groupVariables[playerVariables[playerid][pGroup]][gSafe][0] -= RandPay; // Update(id, pMoney); playerVariables[id][pSalary] -= playerVariables[id][pSalary]; // Update(id, pSalary); } else if(playerVariables[id][pGroup] == 3) { new RandPay; new string[256]; RandPay = (playerVariables[id][pSalary]) * (playerVariables[id][pGroupRank]) * (playerVariables[id][pLevel]) * 100 + 50000 + random(10000); playerVariables[id][pMoney] += RandPay; format(string, sizeof(string), "%s has gave salary to %s ($%s) for (%d paydays online)", playerVariables[playerid][pNormalName], playerVariables[id][pNormalName], NumberFormat(RandPay), playerVariables[id][pSalary]); SendToGroup(3, COLOR_TEAL, string); groupVariables[playerVariables[playerid][pGroup]][gSafe][0] -= RandPay; // Update(id, pMoney); playerVariables[id][pSalary] -= playerVariables[id][pSalary]; // Update(id, pSalary); } else if(playerVariables[id][pGroup] == 4) { new RandPay; new string[256]; RandPay = (playerVariables[id][pSalary]) * (playerVariables[id][pGroupRank]) * (playerVariables[id][pLevel]) * 100 + 50000 + random(10000); playerVariables[id][pMoney] += RandPay; format(string, sizeof(string), "%s has gave salary to %s ($%s) for (%d paydays online)", playerVariables[playerid][pNormalName], playerVariables[id][pNormalName], NumberFormat(RandPay), playerVariables[id][pSalary]); SendToGroup(4, COLOR_TEAL, string); groupVariables[playerVariables[playerid][pGroup]][gSafe][0] -= RandPay; // Update(id, pMoney); playerVariables[id][pSalary] -= playerVariables[id][pSalary]; // Update(id, pSalary); } else if(playerVariables[id][pGroup] == 5) { new RandPay; new string[256]; RandPay = (playerVariables[id][pSalary]) * (playerVariables[id][pGroupRank]) * (playerVariables[id][pLevel]) * 100 + 50000 + random(10000); playerVariables[id][pMoney] += RandPay; format(string, sizeof(string), "%s has gave salary to %s ($%s) for (%d paydays online)", playerVariables[playerid][pNormalName], playerVariables[id][pNormalName], NumberFormat(RandPay), playerVariables[id][pSalary]); SendToGroup(5, COLOR_TEAL, string); groupVariables[playerVariables[playerid][pGroup]][gSafe][0] -= RandPay; playerVariables[id][pSalary] -= playerVariables[id][pSalary]; } else if(playerVariables[id][pGroup] == 6) { new RandPay; new string[256]; RandPay = (playerVariables[id][pSalary]) * (playerVariables[id][pGroupRank]) * (playerVariables[id][pLevel]) * 100 + 50000 + random(10000); playerVariables[id][pMoney] += RandPay; format(string, sizeof(string), "%s has gave salary to %s ($%s) for (%d paydays online)", playerVariables[playerid][pNormalName], playerVariables[id][pNormalName], NumberFormat(RandPay), playerVariables[id][pSalary]); SendToGroup(6, COLOR_TEAL, string); groupVariables[playerVariables[playerid][pGroup]][gSafe][0] -= RandPay; playerVariables[id][pSalary] -= playerVariables[id][pSalary]; } else if(playerVariables[id][pGroup] == 7) { new RandPay; new string[256]; RandPay = (playerVariables[id][pSalary]) * (playerVariables[id][pGroupRank]) * (playerVariables[id][pLevel]) * 100 + 50000 + random(10000); playerVariables[id][pMoney] += RandPay; format(string, sizeof(string), "%s has gave salary to %s ($%s) for (%d paydays online)", playerVariables[playerid][pNormalName], playerVariables[id][pNormalName], NumberFormat(RandPay), playerVariables[id][pSalary]); SendToGroup(7, COLOR_TEAL, string); groupVariables[playerVariables[playerid][pGroup]][gSafe][0] -= RandPay; playerVariables[id][pSalary] -= playerVariables[id][pSalary]; } else if(playerVariables[id][pGroup] == 8) { new RandPay; new string[256]; RandPay = (playerVariables[id][pSalary]) * (playerVariables[id][pGroupRank]) * (playerVariables[id][pLevel]) * 100 + 50000 + random(10000); playerVariables[id][pMoney] += RandPay; format(string, sizeof(string), "%s has gave salary to %s ($%s) for (%d paydays online)", playerVariables[playerid][pNormalName], playerVariables[id][pNormalName], NumberFormat(RandPay), playerVariables[id][pSalary]); SendToGroup(8, COLOR_TEAL, string); groupVariables[playerVariables[playerid][pGroup]][gSafe][0] -= RandPay; playerVariables[id][pSalary] -= playerVariables[id][pSalary]; } else if(playerVariables[id][pGroup] == 9) { new RandPay; new string[256]; RandPay = (playerVariables[id][pSalary]) * (playerVariables[id][pGroupRank]) * (playerVariables[id][pLevel]) * 100 + 50000 + random(10000); playerVariables[id][pMoney] += RandPay; format(string, sizeof(string), "%s has gave salary to %s ($%s) for (%d paydays online)", playerVariables[playerid][pNormalName], playerVariables[id][pNormalName], NumberFormat(RandPay), playerVariables[id][pSalary]); SendToGroup(9, COLOR_TEAL, string); groupVariables[playerVariables[playerid][pGroup]][gSafe][0] -= RandPay; } else if(playerVariables[id][pGroup] == 10) { new RandPay; new string[256]; RandPay = (playerVariables[id][pSalary]) * (playerVariables[id][pGroupRank]) * (playerVariables[id][pLevel]) * 100 + 50000 + random(10000); playerVariables[id][pMoney] += RandPay; format(string, sizeof(string), "%s has gave salary to %s ($%s) for (%d paydays online)", playerVariables[playerid][pNormalName], playerVariables[id][pNormalName], NumberFormat(RandPay), playerVariables[id][pSalary]); SendToGroup(10, COLOR_TEAL, string); groupVariables[playerVariables[playerid][pGroup]][gSafe][0] -= RandPay; playerVariables[id][pSalary] -= playerVariables[id][pSalary]; } } else { SCM(playerid, -1, "That player is not in your faction!"); } } else { SCM(playerid, COLOR_YELLOW, "That player doesn't have enought salary points!"); } } else { SCM(playerid, COLOR_GREY, "That player is not connected!"); } } else { SCM(playerid, COLOR_GREY, "You're not a leader"); } return 1; } Imagini / Video (optional):Nu am.Ati incercat sa rezolvati singur?: Da... chiar nu reusesc.
  9. Imi poti spune exact cum? Sa stiu unde trebuie modificat mai exact.
  10. Buna ziua. Recent am adaugat o noua comanda in gm si imi da cateva erori pe care nu inteleg cum sa le rezolv. Imi puteti da niste sfaturi cum le-as putea rezolva? C:\Users\StroKe\Desktop\Programe inutile\Gamemode\gamemodes\stroke.pwn(25253) : error 017: undefined symbol "playerVariables" C:\Users\StroKe\Desktop\Programe inutile\Gamemode\gamemodes\stroke.pwn(25253) : warning 215: expression has no effect C:\Users\StroKe\Desktop\Programe inutile\Gamemode\gamemodes\stroke.pwn(25253) : error 001: expected token: ";", but found "]" C:\Users\StroKe\Desktop\Programe inutile\Gamemode\gamemodes\stroke.pwn(25253) : error 029: invalid expression, assumed zero C:\Users\StroKe\Desktop\Programe inutile\Gamemode\gamemodes\stroke.pwn(25253) : fatal error 107: too many error messages on one line Linia 25235. CMD:givesalary(playerid, params[]) { new id; if(sscanf(params, "u", id)) return SendClientMessage(playerid, -1, "Syntax: /givesalary [playerid]"); if(playerVariables[playerid][pGroupRank] == 7) { Multumesc anticipat.
  11. Buna am o problema la sistemul de dice. gen uitati in poza asta cum e http://imgur.com/a/6RwUg si gen sistemul este de /dice id suma si /accept dice id si totusi apare asa ... si uitati in pawno CMD:dice(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(!IsPlayerInRangeOfPoint(playerid,50.0,1977.7538,1017.7076,994.4688)) return SCM(playerid,COLOR_WHITE,"You can use this command only in casinos."); if(IsPlayerConnected(playerid)) { new id,money,sendername[25],string[184]; if(sscanf(params, "ud",id,money)) return SCM(playerid,COLOR_WHITE,"{FF9900}Scrie: {33CCFF}/dice <Name/Playerid> <Money>"); if(id == INVALID_PLAYER_ID) return SCM(playerid, COLOR_WHITE, "{FFFFCC}Error: Player not connected."); if(money < 1 || money > 1000000) return SCM(playerid,COLOR_WHITE,"{FFB870}Money limit is $1,000,000."); if(IsPlayerConnected(id)) { if(GetPlayerCash(playerid) < money) return SCM(playerid,COLOR_WHITE,"Tu sau adversarul tau nu aveti suficienti bani pentru a juca barbut."); if(GetPlayerCash(id) < money) return SCM(playerid,COLOR_WHITE,"Tu sau adversarul tau nu aveti suficienti bani pentru a juca barbut."); if(id == playerid) return SendClientMessage(playerid, COLOR_WHITE, "Nu te poti invita singur sa joci barbut."); if(ProxDetectorS(10.0, playerid, id)) { GetPlayerName(playerid, sendername, sizeof(sendername)); SendClientMessage(playerid, COLOR_DARKPINK, "Cerere de barbut trimisa."); format(string, sizeof(string), "%s te-a invitat sa joci barbut cu el pe $%s. Scrie /accept dice %d pentru a juca.",sendername,FormatNumber(money),playerid); SendClientMessage(id, COLOR_DARKPINK, string); Diceid[id] = playerid; Dicem[id] = money; } else return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Player is not near you."); } } return 1; } am modificat si tot asa arata... nu da erori si chiar nu inteleg ce trebuie sa rezolv. Ma puteti ajuta?
  12. Totusi la sistemul de barbut eu am pus sa fie altfel dar se face ca pe b-zone si nu merge.. gen merge /dice id suma dar cand dau accept imi aapre 2 zaruri si nu merge... am sters aia dar tot apare gen eu am pus asta CMD:dice(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(!IsPlayerInRangeOfPoint(playerid,50.0,1977.7538,1017.7076,994.4688)) return SCM(playerid,COLOR_WHITE,"You can use this command only in casinos."); if(IsPlayerConnected(playerid)) { new id,money,sendername[25],string[184]; if(sscanf(params, "ud",id,money)) return SCM(playerid,COLOR_WHITE,"{FF9900}Scrie: {33CCFF}/dice <Name/Playerid> <Money>"); if(id == INVALID_PLAYER_ID) return SCM(playerid, COLOR_WHITE, "{FFFFCC}Error: Player not connected."); if(money < 1 || money > 1000000) return SCM(playerid,COLOR_WHITE,"{FFB870}Money limit is $1,000,000."); if(IsPlayerConnected(id)) { if(GetPlayerCash(playerid) < money) return SCM(playerid,COLOR_WHITE,"Tu sau adversarul tau nu aveti suficienti bani pentru a juca barbut."); if(GetPlayerCash(id) < money) return SCM(playerid,COLOR_WHITE,"Tu sau adversarul tau nu aveti suficienti bani pentru a juca barbut."); if(id == playerid) return SendClientMessage(playerid, COLOR_WHITE, "Nu te poti invita singur sa joci barbut."); if(ProxDetectorS(10.0, playerid, id)) { GetPlayerName(playerid, sendername, sizeof(sendername)); SendClientMessage(playerid, COLOR_DARKPINK, "Cerere de barbut trimisa."); format(string, sizeof(string), "%s te-a invitat sa joci barbut cu el pe $%s. Scrie /accept dice %d pentru a juca.",sendername,FormatNumber(money),playerid); SendClientMessage(id, COLOR_DARKPINK, string); Diceid[id] = playerid; Dicem[id] = money; } else return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Player is not near you."); } } dar el face la final cu zarurile ca in acest sistem CMD:dice(playerid, params[]) { if(PinLogged[playerid] == 0)return SCM(playerid, COLOR_LIGHTRED,"Trebuie sa introduci pin-ul mai intai.(/pin)"); if(!IsPlayerInRangeOfPoint(playerid,50.0,1977.7538,1017.7076,994.4688)) return SCM(playerid,COLOR_WHITE,"You can use this command only in casinos."); new id,nume[30],nume2[30]; if(sscanf(params, "u",id)) return SCM(playerid, -1, "USAGE: /dice <id>"); if(joacabarbut[playerid] == 1) return SCM(playerid, -1, "Esti deja intr-un meci de barbut."); if(joacabarbut[id] == 1) return SCM(playerid, -1, "Acel jucator joaca deja barbut."); if(!IsPlayerConnected(id)) return SCM(playerid, -1, "Acel jucator nu este conectat."); if(id == playerid) return SCM(playerid, -1, "Nu poti juca cu tine insuti."); new Float:PozitieID[3]; GetPlayerPos(id, PozitieID[0], PozitieID[1], PozitieID[2]); if(!IsPlayerInRangeOfPoint(playerid, 3.0, PozitieID[0], PozitieID[1], PozitieID[2])) return SCM(playerid, -1, "Acel jucator nu este langa tine."); GetPlayerName(playerid, nume, sizeof(nume)); GetPlayerName(id, nume2, sizeof(nume2)); format(stringglobal, sizeof(stringglobal), "%s te-a invitat sa joci barbut cu el. Pentru a accepta foloseste comanda [/accept dice %d].",nume, playerid); SCM(id, -1, stringglobal); format(stringglobal, sizeof(stringglobal), "L-ai invitat pe %s sa joace barbut cu tine.",nume2); SCM(playerid, -1, stringglobal); invitatiebarbut[playerid] = id; invitatiebarbut[id] = playerid; return 1;
  13. CMD:accept(playerid, params[]) { if(PinLogged[playerid] == 0)return SCM(playerid, COLOR_LIGHTRED,"Trebuie sa introduci pin-ul mai intai.(/pin)"); if(IsPlayerConnected(playerid)) { new x_job[256], id, sendername[25], giveplayer[25], string[300], tmpcar = GetPlayerVehicleID(playerid), ccar = IsPlayerInAnyVehicle(playerid); if(sscanf(params, "s[256]u",x_job,id)) { SendClientMessage(playerid, COLOR_WHITE, "{FFFFFF}Syntax: {FFFFFF}/accept <Name> <Name/Playerid>"); SendClientMessage(playerid, COLOR_WHITE, "Available names: Drugs, Repair, House, Materials, Dice, Fight."); SendClientMessage(playerid, COLOR_WHITE, "Available names: Vehicle, Taxi, Medic, Live, Lawyer, Carrace."); SendClientMessage(playerid, COLOR_WHITE, "Available names: Mechanic, Ticket, Refill, Invite, Free."); return 1; } if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}Error: Player not connected."); if(strcmp(x_job,"dice",true) == 0) { if(!IsPlayerInRangeOfPoint(playerid,50.0,1977.7538,1017.7076,994.4688)) return SCM(playerid,COLOR_WHITE,"You can use this command only in casinos."); if(invitatiebarbut[playerid] != id) return SCM(playerid, -1, "Acel jucator nu te-a invitat sa joci barbut."); if(joacabarbut[playerid] == 1) return SCM(playerid, -1, "Esti deja intr-un meci de barbut."); if(joacabarbut[id] == 1) return SCM(playerid, -1, "Acel jucator joaca deja barbut."); if(id == playerid) return SCM(playerid, -1, "Nu poti juca cu tine insuti."); if(IsPlayerConnected(id)) { new Float:PozitieID[3]; GetPlayerPos(id, PozitieID[0], PozitieID[1], PozitieID[2]); if(!IsPlayerInRangeOfPoint(playerid, 3.0, PozitieID[0], PozitieID[1], PozitieID[2])) return SCM(playerid, -1, "Acel jucator nu este langa tine."); BarbutTDStatus(playerid,id, true); } else return SCM(playerid, -1, "Acel jucator nu este conectat."); return 1; done
  14. pai asta e accept dice sau te referi la astea? CMD:accept(playerid, params[]) { if(PinLogged[playerid] == 0)return SCM(playerid, COLOR_LIGHTRED,"Trebuie sa introduci pin-ul mai intai.(/pin)"); if(IsPlayerConnected(playerid)) { new x_job[256], id, sendername[25], giveplayer[25], string[300], tmpcar = GetPlayerVehicleID(playerid), ccar = IsPlayerInAnyVehicle(playerid); if(sscanf(params, "s[256]u",x_job,id)) { SendClientMessage(playerid, COLOR_WHITE, "{FFFFFF}Syntax: {FFFFFF}/accept <Name> <Name/Playerid>"); SendClientMessage(playerid, COLOR_WHITE, "Available names: Drugs, Repair, House, Materials, Dice, Fight."); SendClientMessage(playerid, COLOR_WHITE, "Available names: Vehicle, Taxi, Medic, Live, Lawyer, Carrace."); SendClientMessage(playerid, COLOR_WHITE, "Available names: Mechanic, Ticket, Refill, Invite, Free."); return 1; } if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}Error: Player not connected."); if(strcmp(x_job,"dice",true) == 0) { if(!IsPlayerInRangeOfPoint(playerid,50.0,1977.7538,1017.7076,994.4688)) return SCM(playerid,COLOR_WHITE,"You can use this command only in casinos."); if(invitatiebarbut[playerid] != id) return SCM(playerid, -1, "Acel jucator nu te-a invitat sa joci barbut."); if(joacabarbut[playerid] == 1) return SCM(playerid, -1, "Esti deja intr-un meci de barbut."); if(joacabarbut[id] == 1) return SCM(playerid, -1, "Acel jucator joaca deja barbut."); if(id == playerid) return SCM(playerid, -1, "Nu poti juca cu tine insuti."); if(IsPlayerConnected(id))
  15. format(string, sizeof(string), "%s te-a invitat sa joci barbut cu el pe $%s. Scrie /accept dice %d pentru a juca.",sendername,FormatNumber(money),playerid);
  16. .Am o problema la dice dau /dice id suma si cand sa accepte un player spune ca acel player nu este conectat... ma puteti ajuta? CMD:dice(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(!IsPlayerInRangeOfPoint(playerid,50.0,1977.7538,1017.7076,994.4688)) return SCM(playerid,COLOR_WHITE,"You can use this command only in casinos."); if(IsPlayerConnected(playerid)) { new id,money,sendername[25],string[184]; if(sscanf(params, "ud",id,money)) return SCM(playerid,COLOR_WHITE,"{FF9900}Scrie: {33CCFF}/dice <Name/Playerid> <Money>"); if(id == INVALID_PLAYER_ID) return SCM(playerid, COLOR_WHITE, "{FFFFCC}Error: Player not connected."); if(money < 1 || money > 1000000) return SCM(playerid,COLOR_WHITE,"{FFB870}Money limit is $1,000,000."); if(IsPlayerConnected(id)) { if(GetPlayerCash(playerid) < money) return SCM(playerid,COLOR_WHITE,"Tu sau adversarul tau nu aveti suficienti bani pentru a juca barbut."); if(GetPlayerCash(id) < money) return SCM(playerid,COLOR_WHITE,"Tu sau adversarul tau nu aveti suficienti bani pentru a juca barbut."); if(id == playerid) return SendClientMessage(playerid, COLOR_WHITE, "Nu te poti invita singur sa joci barbut."); if(ProxDetectorS(10.0, playerid, id)) { GetPlayerName(playerid, sendername, sizeof(sendername)); SendClientMessage(playerid, COLOR_DARKPINK, "Cerere de barbut trimisa."); format(string, sizeof(string), "%s te-a invitat sa joci barbut cu el pe $%s. Scrie /accept dice %d pentru a juca.",sendername,FormatNumber(money),playerid); SendClientMessage(id, COLOR_DARKPINK, string); Diceid[id] = playerid; Dicem[id] = money; } else return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Player is not near you."); } } return 1; }
  17. Am aceasta eroare si chiar nu inteleg cum sa o rezolv, ma puteti ajuta? http://prntscr.com/cjdvyr
×
×
  • 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.