Search the Community
Showing results for tags 'error'.
-
Primesc Aceasta Eroare La Compilare! include\YSI_Data\y_iterate.inc(108) : fatal error 111: user error: Could not find y_iterate
-
Salut, am si eu o problema la sistemul de trade de pe gm-ul burned editat de @SkillZ_IT. la comanda /trade https://imgur.com/a/J4x55xY ce-l care este pozitionat in partea dreapta nu poate sa apese pe butonul adauga, butonul pregatit functioneaza dar ce-l de adauga nu -am incercat sa schimb level m-am uitat prin gm la comenzi am incercat cu alti playeri alte conturi si tot nu merge , inca o problema ar fi ca nu poti sa inchizi acel sistem de trade Repet problema o are doar ce-l care e afisat in partea dreapta , persoana care a acceptat trade-ul ce-l care invita poate sa adauge bunuri fara problema
-
Am o problema: error 010: invalid function or declaration La publicul: public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { new file[256]; new name[MAX_PLAYER_NAME]; new Registre[250]; GetPlayerName(playerid,name,MAX_PLAYER_NAME); if(dialogid == RegisterName) { if(!response) Kick(playerid); { if(strlen(inputtext) == 0) return ShowPlayerDialog(playerid,RegisterName,DIALOG_STYLE_INPUT,"Inregistrare","{FF0000}Parola invalida\n{FFA500}Te rog scrie o parola corecta!","Inregistrare","Iesire"); format(file,sizeof(file),"%s.cfg", name); if(!fexist(file)) { dini_Create(file); dini_IntSet(file, "Password", udb_hash(inputtext)); dini_IntSet(file, "Money", 2500); dini_IntSet(file, "Score", 1); dini_IntSet(file, "BCR", 1000); dini_IntSet(file, "RobSkill", 1); dini_IntSet(file, "TerSkill", 1); dini_IntSet(file, "Admin", 0); dini_IntSet(file, "Warnings", 0); dini_IntSet(file, "WantedLevel", 0); dini_IntSet(file, "Jail", 0); dini_IntSet(file, "RentalOwner", 0); dini_IntSet(file, "Drugs", 0); dini_IntSet(file, "C4", 0); dini_IntSet(file, "Skin", -1); dini_IntSet(file, "Level", 0); dini_IntSet(file, "PremiumPoints", 0); dini_IntSet(file, "Exp", 0); format(Registre,sizeof(Registre),"{FFFF00}Multumim pentru inregistrare!\n{FFFF00}Acum trebuie sa te conectezi.",name); ShowPlayerDialog(playerid,LoginName,DIALOG_STYLE_INPUT,"Login",Registre,"Conectare","Iesire"); GameTextForPlayer(playerid, "~r~Registered!", 3000, 1); } } } if(dialogid == LoginName) { if(!response) Kick(playerid); { GetPlayerName(playerid,name,MAX_PLAYER_NAME); if(strlen(inputtext) == 0) return ShowPlayerDialog(playerid,LoginName,DIALOG_STYLE_INPUT,"Login","parola invalida!\nTe rog scrie-ti parola","Conectare","Iesire"); format(file,sizeof(file),"%s.cfg", name); if(udb_hash(inputtext) != dini_Int(file, "Password")) return ShowPlayerDialog(playerid,LoginName,DIALOG_STYLE_INPUT,"Login","Parola gresita!\nTe rog scrie-ti parola","Conectare","Iesire"); else { IsPlayerLogged[playerid] = 1; SetPlayerMoney(playerid, dini_Int(file, "Money")); SetPlayerScore(playerid, dini_Int(file, "Score")); AccountInfo[playerid][aLevel] = dini_Int(file, "Admin"); AccountInfo[playerid][Level] = dini_Int(file, "Level"); AccountInfo[playerid][Exp] = dini_Int(file, "Exp"); AccountInfo[playerid][Warnings] = dini_Int(file, "Warnings"); AccountInfo[playerid][PremiumPoints] = dini_Int(file, "PremiumPoints"); PlayerSkin[playerid] = dini_Int(file,"Skin"); SetPlayerWantedLevel(playerid, dini_Int(file, "WantedLevel")); SendClientMessage(playerid, GREY, "Acum esti conectat."); GameTextForPlayer(playerid, "~r~Logged In!", 3000, 1); } } } if(dialogid == DIALOG_SHOP) { if(response) { if(listitem == 0) { new string1[500],string2[500],string5[2400]; format(string1, sizeof(string1), "Jucatorii activi pot primii puncte premium."); format(string2, sizeof(string2), "Cu care se poat cumpara Bani,Admin,level si multe altele."); format(string5, sizeof(string5), "%s\n%s\n\n%s\n%s", string1, string2); ShowPlayerDialog(playerid, DIALOG_SHOP2, DIALOG_STYLE_MSGBOX, "Info", string5, "Close", ""); } if(listitem == 2) { if(AccountInfo[playerid][aLevel] > 0) { SendClientMessage(playerid, ERROR, "Esti deja admin."); return 1; } if(AccountInfo[playerid][PremiumPoints] <= 59) { ShowPlayerDialog(playerid, DIALOG_NOPP, DIALOG_STYLE_MSGBOX, "Nu ai destule puncte", "Ai nevoie de 500 de puncte pentru a cumpara admin.", "Close", ""); return 1; } AccountInfo[playerid][PremiumPoints] -= 500; AccountInfo[playerid][aLevel] = 1; new strings[200],namef[30]; SendClientMessage(playerid, COLOR_YELLOW, "Ai cumparat admin 1!(-500 PP)"); GetPlayerName(playerid, namef, sizeof(name)); format(strings, sizeof(strings), "/shop: %s a cumparat admin 1.",namef); ABroadCast(COLOR_YELLOW,strings,6); } if(listitem == 6) { if(AccountInfo[playerid][Warnings] <= 0) { SendClientMessage(playerid, COLOR_RED, "Nu au nici-un warn."); return 1; } if(AccountInfo[playerid][PremiumPoints] <= 49) { ShowPlayerDialog(playerid, DIALOG_NOPP, DIALOG_STYLE_MSGBOX, "Nu ai destule puncte", "Ai nevoie de 50 de puncte pentru ati sterge warn-urile.", "Close", ""); return 1; } AccountInfo[playerid][PremiumPoints] -= 50; AccountInfo[playerid][Warnings] = 0; new strings[200],namef[30]; SendClientMessage(playerid, COLOR_YELLOW, "Ti-ai sters toate warn-urile! (-50 premium points)"); GetPlayerName(playerid, namef, sizeof(name)); format(strings, sizeof(strings), "/shop: %s si-a sters warningurile.",namef); ABroadCast(COLOR_YELLOW,strings,6); } if(AccountInfo[playerid][PremiumPoints] <= 49) { ShowPlayerDialog(playerid, DIALOG_NOPP, DIALOG_STYLE_MSGBOX, "Nu ai destule puncte", "Ai nevoie de 50 de puncte pentru ati sterge warn-urile.", "Close", ""); return 1; } if(listitem == 11) { new strings[256]; if(AccountInfo[playerid][PremiumPoints] < 29) return SCM(playerid, COLOR_WHITE, "Nu ai suficiente puncte premium!"); AccountInfo[playerid][PremiumPoints] -= 30; GivePlayerMoney(playerid, 300000); SCM(playerid, COLOR_YELLOW, "Ai cumparat $300.000 pentru 1 punct premium."); format(strings, sizeof(strings), "/shop: %s a cumparat 300,000$.",name); ABroadCast(COLOR_YELLOW,strings,6); } if(listitem == 12) { new strings[256]; if(AccountInfo[playerid][PremiumPoints] < 49) return SCM(playerid, COLOR_WHITE, "Nu ai suficiente puncte premium!"); AccountInfo[playerid][PremiumPoints] -= 50; GivePlayerMoney(playerid, 3000000); SCM(playerid, COLOR_YELLOW, "Ai cumparat $3,000.000 pentru 10 puncte premium."); format(strings, sizeof(strings), "/shop: %s a cumparat 300,000$.",name); ABroadCast(COLOR_YELLOW,strings,6); } if(listitem == 13) { new strings[256]; if(AccountInfo[playerid][PremiumPoints] < 89) return SCM(playerid, COLOR_WHITE, "Nu ai suficiente puncte premium!"); AccountInfo[playerid][PremiumPoints] -= 90; GivePlayerMoney(playerid, 70000000); SCM(playerid, COLOR_YELLOW, "Ai cumparat $70.000.000 pentru 70 puncte premium."); format(strings, sizeof(strings), "/shop: %s a cumparat 70,000,000$.",name); ABroadCast(COLOR_YELLOW,strings,6); } } } return 1; } return 1; } La linia: } } return 1; } return 1; /*<-- ASTA!\* } URGENT! iar daca ma ajutati va dau +1
-
Salut! Am o problema C:\Program Files\Cops And Robbers Romania\gamemodes\test2.pwn(9903) : error 010: invalid function or declaration la publicul: public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { new file[256]; new name[MAX_PLAYER_NAME]; new Registre[250]; GetPlayerName(playerid,name,MAX_PLAYER_NAME); if(dialogid == RegisterName) { if(!response) Kick(playerid); { if(strlen(inputtext) == 0) return ShowPlayerDialog(playerid,RegisterName,DIALOG_STYLE_INPUT,"Inregistrare","{FF0000}Parola invalida\n{FFA500}Te rog scrie o parola corecta!","Inregistrare","Iesire"); format(file,sizeof(file),"%s.cfg", name); if(!fexist(file)) { dini_Create(file); dini_IntSet(file, "Password", udb_hash(inputtext)); dini_IntSet(file, "Money", 2500); dini_IntSet(file, "Score", 1); dini_IntSet(file, "BCR", 1000); dini_IntSet(file, "RobSkill", 1); dini_IntSet(file, "TerSkill", 1); dini_IntSet(file, "Admin", 0); dini_IntSet(file, "Warnings", 0); dini_IntSet(file, "WantedLevel", 0); dini_IntSet(file, "Jail", 0); dini_IntSet(file, "RentalOwner", 0); dini_IntSet(file, "Drugs", 0); dini_IntSet(file, "C4", 0); dini_IntSet(file, "Skin", -1); dini_IntSet(file, "Level", 0); dini_IntSet(file, "PremiumPoints", 0); dini_IntSet(file, "Exp", 0); format(Registre,sizeof(Registre),"{FFFF00}Multumim pentru inregistrare!\n{FFFF00}Acum trebuie sa te conectezi.",name); ShowPlayerDialog(playerid,LoginName,DIALOG_STYLE_INPUT,"Login",Registre,"Conectare","Iesire"); GameTextForPlayer(playerid, "~r~Registered!", 3000, 1); } } } if(dialogid == LoginName) { if(!response) Kick(playerid); { GetPlayerName(playerid,name,MAX_PLAYER_NAME); if(strlen(inputtext) == 0) return ShowPlayerDialog(playerid,LoginName,DIALOG_STYLE_INPUT,"Login","parola invalida!\nTe rog scrie-ti parola","Conectare","Iesire"); format(file,sizeof(file),"%s.cfg", name); if(udb_hash(inputtext) != dini_Int(file, "Password")) return ShowPlayerDialog(playerid,LoginName,DIALOG_STYLE_INPUT,"Login","Parola gresita!\nTe rog scrie-ti parola","Conectare","Iesire"); else { IsPlayerLogged[playerid] = 1; SetPlayerMoney(playerid, dini_Int(file, "Money")); SetPlayerScore(playerid, dini_Int(file, "Score")); AccountInfo[playerid][aLevel] = dini_Int(file, "Admin"); AccountInfo[playerid][Level] = dini_Int(file, "Level"); AccountInfo[playerid][Exp] = dini_Int(file, "Exp"); AccountInfo[playerid][Warnings] = dini_Int(file, "Warnings"); AccountInfo[playerid][PremiumPoints] = dini_Int(file, "PremiumPoints"); PlayerSkin[playerid] = dini_Int(file,"Skin"); SetPlayerWantedLevel(playerid, dini_Int(file, "WantedLevel")); SendClientMessage(playerid, GREY, "Acum esti conectat."); GameTextForPlayer(playerid, "~r~Logged In!", 3000, 1); } } } if(dialogid == DIALOG_SHOP) { if(response) { if(listitem == 0) { new string1[500],string2[500],string5[2400]; format(string1, sizeof(string1), "Jucatorii activi pot primii puncte premium."); format(string2, sizeof(string2), "Cu care se poat cumpara Bani,Admin,level si multe altele."); format(string5, sizeof(string5), "%s\n%s\n\n%s\n%s", string1, string2); ShowPlayerDialog(playerid, DIALOG_SHOP2, DIALOG_STYLE_MSGBOX, "Info", string5, "Close", ""); } if(listitem == 2) { if(AccountInfo[playerid][aLevel] > 0) { SendClientMessage(playerid, ERROR, "Esti deja admin."); return 1; } if(AccountInfo[playerid][PremiumPoints] <= 59) { ShowPlayerDialog(playerid, DIALOG_NOPP, DIALOG_STYLE_MSGBOX, "Nu ai destule puncte", "Ai nevoie de 500 de puncte pentru a cumpara admin.", "Close", ""); return 1; } AccountInfo[playerid][PremiumPoints] -= 500; AccountInfo[playerid][aLevel] = 1; new strings[200],namef[30]; SendClientMessage(playerid, COLOR_YELLOW, "Ai cumparat admin 1!(-500 PP)"); GetPlayerName(playerid, namef, sizeof(name)); format(strings, sizeof(strings), "/shop: %s a cumparat admin 1.",namef); ABroadCast(COLOR_YELLOW,strings,6); } if(listitem == 6) { if(AccountInfo[playerid][Warnings] <= 0) { SendClientMessage(playerid, COLOR_RED, "Nu au nici-un warn."); return 1; } if(AccountInfo[playerid][PremiumPoints] <= 49) { ShowPlayerDialog(playerid, DIALOG_NOPP, DIALOG_STYLE_MSGBOX, "Nu ai destule puncte", "Ai nevoie de 50 de puncte pentru ati sterge warn-urile.", "Close", ""); return 1; } AccountInfo[playerid][PremiumPoints] -= 50; AccountInfo[playerid][Warnings] = 0; new strings[200],namef[30]; SendClientMessage(playerid, COLOR_YELLOW, "Ti-ai sters toate warn-urile! (-50 premium points)"); GetPlayerName(playerid, namef, sizeof(name)); format(strings, sizeof(strings), "/shop: %s si-a sters warningurile.",namef); ABroadCast(COLOR_YELLOW,strings,6); } if(AccountInfo[playerid][PremiumPoints] <= 49) { ShowPlayerDialog(playerid, DIALOG_NOPP, DIALOG_STYLE_MSGBOX, "Nu ai destule puncte", "Ai nevoie de 50 de puncte pentru ati sterge warn-urile.", "Close", ""); return 1; } if(listitem == 11) { new strings[256]; if(AccountInfo[playerid][PremiumPoints] < 29) return SCM(playerid, COLOR_WHITE, "Nu ai suficiente puncte premium!"); AccountInfo[playerid][PremiumPoints] -= 30; GivePlayerMoney(playerid, 300000); SCM(playerid, COLOR_YELLOW, "Ai cumparat $300.000 pentru 1 punct premium."); format(strings, sizeof(strings), "/shop: %s a cumparat 300,000$.",name); ABroadCast(COLOR_YELLOW,strings,6); } if(listitem == 12) { new strings[256]; if(AccountInfo[playerid][PremiumPoints] < 49) return SCM(playerid, COLOR_WHITE, "Nu ai suficiente puncte premium!"); AccountInfo[playerid][PremiumPoints] -= 50; GivePlayerMoney(playerid, 3000000); SCM(playerid, COLOR_YELLOW, "Ai cumparat $3,000.000 pentru 10 puncte premium."); format(strings, sizeof(strings), "/shop: %s a cumparat 300,000$.",name); ABroadCast(COLOR_YELLOW,strings,6); } if(listitem == 13) { new strings[256]; if(AccountInfo[playerid][PremiumPoints] < 89) return SCM(playerid, COLOR_WHITE, "Nu ai suficiente puncte premium!"); AccountInfo[playerid][PremiumPoints] -= 90; GivePlayerMoney(playerid, 70000000); SCM(playerid, COLOR_YELLOW, "Ai cumparat $70.000.000 pentru 70 puncte premium."); format(strings, sizeof(strings), "/shop: %s a cumparat 70,000,000$.",name); ABroadCast(COLOR_YELLOW,strings,6); } } } return 1; } return 0; } Linia este: } } } return 1; } return 0; // ASTA <--- } +1 celui care ma ajuta!
-
Salut, am si eu o problema la comanda /towcar Am aceasta comanda in pawno https://pastebin.com/a271BXPZ Cand dau compilare imi arata asa https://imgur.com/a/YzJCh Ce pot face?
-
Ma poate ajuta cineva cu aceste erori/warning-uri? E:\pawno\include\mSelection.inc(207) : warning 219: local variable "x" shadows a variable at a preceding level E:\pawno\include\mSelection.inc(222) : warning 219: local variable "x" shadows a variable at a preceding level E:\pawno\include\mSelection.inc(426) : warning 219: local variable "x" shadows a variable at a preceding level E:\pawno\include\mSelection.inc(556) : warning 219: local variable "x" shadows a variable at a preceding level E:\pawno\include\fly.inc(45) : warning 219: local variable "x" shadows a variable at a preceding level E:\pawno\include\fly.inc(45) : warning 219: local variable "y" shadows a variable at a preceding level E:\pawno\include\fly.inc(60) : warning 219: local variable "x" shadows a variable at a preceding level E:\pawno\include\fly.inc(60) : warning 219: local variable "y" shadows a variable at a preceding level E:\pawno\include\fly.inc(108) : warning 219: local variable "x" shadows a variable at a preceding level E:\pawno\include\fly.inc(108) : warning 219: local variable "y" shadows a variable at a preceding level E:\pawno\include\OPA.inc(57) : warning 219: local variable "x" shadows a variable at a preceding level E:\pawno\include\OPA.inc(58) : warning 219: local variable "y" shadows a variable at a preceding level E:\pawno\include\OPA.inc(142) : warning 219: local variable "vehicleid" shadows a variable at a preceding level E:\pawno\include\OPA.inc(144) : warning 219: local variable "x" shadows a variable at a preceding level E:\pawno\include\OPA.inc(145) : warning 219: local variable "y" shadows a variable at a preceding level C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(46) : error 017: undefined symbol "AntiDeAMX" C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(2955) : warning 219: local variable "vehicleid" shadows a variable at a preceding level C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(4763) : error 004: function "vUpdate" is not implemented C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(4874) : warning 219: local variable "y" shadows a variable at a preceding level C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(4874) : warning 219: local variable "h" shadows a variable at a preceding level C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(4893) : warning 219: local variable "y" shadows a variable at a preceding level C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(4893) : warning 219: local variable "h" shadows a variable at a preceding level C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(4902) : error 004: function "SS" is not implemented C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(4962) : error 004: function "SS" is not implemented C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(5013) : error 004: function "ProxDetector" is not implemented C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(5166) : error 004: function "SS" is not implemented C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(5168) : error 004: function "SS" is not implemented C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(5185) : error 004: function "SS" is not implemented C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(5344) : error 017: undefined symbol "PutPlayerInVehicleEx" C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(5363) : error 017: undefined symbol "PutPlayerInVehicleEx" C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(5382) : error 017: undefined symbol "PutPlayerInVehicleEx" C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(5401) : error 017: undefined symbol "PutPlayerInVehicleEx" C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(5420) : error 017: undefined symbol "PutPlayerInVehicleEx" C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(6054) : warning 219: local variable "health" shadows a variable at a preceding level C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(6056) : error 017: undefined symbol "GetPlayerHealthEx" C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(6061) : error 017: undefined symbol "SetPlayerHealthEx" C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(6065) : error 017: undefined symbol "SetPlayerHealthEx" C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(6494) : error 017: undefined symbol "SetPlayerPosEx" C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(6725) : error 004: function "SS" is not implemented C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(7234) : warning 219: local variable "x" shadows a variable at a preceding level C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(7234) : warning 219: local variable "y" shadows a variable at a preceding level C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(7619) : warning 219: local variable "health" shadows a variable at a preceding level C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(7622) : error 017: undefined symbol "GetPlayerHealthEx" C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(7627) : error 017: undefined symbol "Carspeed" C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(8360) : error 017: undefined symbol "NumIp" C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(8368) : error 017: undefined symbol "AntiFlood_InitPlayer" C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(10084) : error 017: undefined symbol "ClearWanted" C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(10112) : error 017: undefined symbol "BanCheck" C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(10247) : error 004: function "CrimInRange" is not implemented C:\Users\Crysty\Desktop\gamemode sa\gamemode sa\gamemodes\engame.pwn(10470) : error 017: undefined symbol "SetPlayerArmourEx" Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 26 Errors. Asa arata comanda inainte sa o modific si dupa ce am moficat-o: https://pastebin.com/rDN4eMrn
-
Am o eroare la scriptingul unui gps.
-
Problema ( Descriere ) : Ma tot bantuie o eroare in MySQL Logs ( mysql_log.html ) de la ,, Personal Vehicles Sistem " . Eroarea ( Error ) : ("LoadPersonalVehicleInfo"); Log("12:12:24","cache_get_field_content_int",1,"invalid datatype",0); Liniile de cod sursa al script-ului : Imagini / Video : - Ati incercat sa rezolvati singur ? : Yes , Sir . P.S : Tiin sa va anunt ca Server-ul ruleaza in perfecta stare ( in conditii normale ) , fara nici o problema / bug ... Server Log-ul ( server_log.txt ) Server-ului este 100% curat , fara nici un Warnning / Error !
-
Vreau sa stiu daca a rezolvat cineva problema de la panelul lui @Mister. In orice caz, cum rezolv aceasta problema ?
-
Buna ziua acum 1-2 ore am implementat sistemul /getgift , totul merge perfect ! Imi da la fiecare payday 1 giftpoint's , merge sa iau cadourile , merge sa dau la toti giftpoints merge tot. Problema este ca daca ies de pe server nu mi se salveaza giftpoint's ! E urgent puteti sa-mi dati o solutie ?
- 7 replies
-
- giftpoints
- getgift
- (and 5 more)
-
Buna ziua , sunt la inceput la scripting Am o erroare : C:\Users\George\Desktop\JustGame Server\gamemodes\JG.pwn(20989) : warning 219: local variable "gString" shadows a variable at a preceding level C:\Users\George\Desktop\JustGame Server\gamemodes\JG.pwn(20999) : error 017: undefined symbol "pExp" C:\Users\George\Desktop\JustGame Server\gamemodes\JG.pwn(20990) : warning 204: symbol is assigned a value that is never used: "szMessage" Folosesc GM JustGame si am adaugat comanda get gift , am facut tot ca in tutorial Dar intampin probleme la : CMD:getgift(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); // Verifica daca-i logat if(PlayerInfo[playerid][pGift] == 0) return SendClientMessage(playerid, COLOR_WHITE, "Ai nevoie de minim 1 Gift Point pentru a putea folosi comanda."); // Iii trimite un mesaj daca nu are giftpoints new gString[512]; new szMessage[256];//s-ar putea sa nu ai voie daca nu ai si SCM switch(random(2)) // Aici e facut sa iti deie randem din cele 2 case-uri tu poti adauga case 3 case 4 etc.. si pentru fiecare case nou modifici in switch(random(3)) switch(random(4)) sau cate ai. { case 0: { new rp = 5;// Aici poti baga sa-i adauge cat rp vrei tu eu am pus 5 SendClientMessage(playerid, COLOR_WHITE, "Ai castigat 5 Respect Points de la giftbox.");// castiga 5 Respect points PlayerInfo[playerid][pGift] -= 1; Update(playerid, pGiftx); PlayerInfo[playerid][pExp] += rp; Update(playerid, pRP); GameTextForPlayer(playerid, "~g~5 Respect Points!", 5000, 1); } case 1: { new cash = 100000 + random(200000); // Castiga o suma de bani 100.000 $ + random din suma de 200.000 $ format(gString,sizeof(gString),"* You received $%s.",FormatNumber(cash)); // aici il scrie SendClientMessage(playerid, COLOR_SYN, gString);//aici afiseaza mesajul PlayerInfo[playerid][pGift] -= 1; Update(playerid, pGiftx); GivePlayerCash(playerid, cash); GameTextForPlayer(playerid, "~g~100.000 - 300.000$!", 5000, 1); } } return 1; }