Jump to content

TheGodfather

Membru
  • Posts

    489
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by TheGodfather

  1. Pentru if(success == ...) (39277) : warning 213: tag mismatch: expected tag "e_COMMAND_ERRORS", but found none ("_") Linia 39277 este penultima, cea cu unknown command
  2. Din sutele de erori/warninguri am reusit sa ajung doar la cateva: C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\pawno\include\YSI_Visual\y_commands\y_commands_impl.inc(197) : error 025: function heading differs from prototype C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\pawno\include\YSI_Visual\y_commands\y_commands_impl.inc(198) : error 025: function heading differs from prototype C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\pawno\include\YSI_Coding\y_timers\..\y_malloc\y_malloc_warning.inc(7) : warning 237: user warning: y_malloc heap allocation is unstable. Use `YSI_NO_HEAP_MALLOC` to disable it, or `YSI_YES_HEAP_MALLOC` to disable this warning: git.io/YSI_HEAP_MALLOC C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\gamemodes\B-HOOD.pwn(3294) : warning 213: tag mismatch: expected tag "Timer", but found none ("_") C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\gamemodes\B-HOOD.pwn(39197) : error 025: function heading differs from prototype C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\gamemodes\B-HOOD.pwn(39270) : error 025: function heading differs from prototype C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\gamemodes\B-HOOD.pwn(46781) : error 017: undefined symbol "_is_now_DYNAMIC_MEMORY_"
  3. M-a rupt... C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\pawno\include\YSI_Data\y_foreach\..\..\YSI_Core\y_core\y_utils_impl.inc(236) : warning 219: local variable "ip" shadows a variable at a preceding level C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\pawno\include\YSI_Data\y_foreach\..\..\YSI_Core\y_core\y_utils_impl.inc(901) : warning 219: local variable "ip" shadows a variable at a preceding level C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\pawno\include\YSI_Data\y_foreach\..\..\YSI_Coding\y_va\..\..\YSI_Core\y_core\..\..\amx\disasm.inc(111) : warning 219: local variable "ip" shadows a variable at a preceding level C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\pawno\include\YSI_Data\y_foreach\..\..\YSI_Coding\y_va\..\..\YSI_Core\y_core\..\..\amx\disasm.inc(144) : warning 219: local variable "ip" shadows a variable at a preceding level C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\pawno\include\YSI_Data\y_foreach\..\..\YSI_Coding\y_hooks\y_hooks_impl.inc(659) : warning 219: local variable "sName" shadows a variable at a preceding level C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\pawno\include\YSI_Data\y_foreach\y_foreach_iterators.inc(117) : error 017: undefined symbol "MAX_ACTORS" C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\pawno\include\YSI_Data\y_foreach\y_foreach_iterators.inc(120) : error 017: undefined symbol "MAX_ACTORS" C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\pawno\include\YSI_Data\y_foreach\y_foreach_iterators.inc(122) : error 017: undefined symbol "MAX_ACTORS" C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\pawno\include\YSI_Data\y_foreach\y_foreach_iterators.inc(395) : error 017: undefined symbol "MAX_ACTORS" C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\pawno\include\YSI_Visual\y_commands\y_commands_impl.inc(197) : error 025: function heading differs from prototype C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\pawno\include\YSI_Visual\y_commands\y_commands_impl.inc(198) : error 025: function heading differs from prototype C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\pawno\include\YSI_Coding\y_timers\..\y_malloc\y_malloc_warning.inc(7) : warning 237: user warning: y_malloc heap allocation is unstable. Use `YSI_NO_HEAP_MALLOC` to disable it, or `YSI_YES_HEAP_MALLOC` to disable this warning: git.io/YSI_HEAP_MALLOC C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\pawno\include\dropAir.inc(64) : error 021: symbol already defined: "@yH_OnPlayerConnect@004" C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\pawno\include\dropAir.inc(64) : warning 209: function "@yH_OnPlayerConnect@004" should return a value C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\pawno\include\dropAir.inc(65) : error 021: symbol already defined: "@yH_OnPlayerDisconnect@004" C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\pawno\include\dropAir.inc(120) : warning 219: local variable "using_deprecated_foreach_syntax" shadows a variable at a preceding level C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\pawno\include\dropAir.inc(185) : error 017: undefined symbol "DONT_USE" C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\gamemodes\B-HOOD.pwn(180) : error 021: symbol already defined: "Range" C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\gamemodes\B-HOOD.pwn(190) : warning 219: local variable "using_deprecated_foreach_syntax" shadows a variable at a preceding level C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\gamemodes\B-HOOD.pwn(201) : warning 219: local variable "using_deprecated_foreach_syntax" shadows a variable at a preceding level C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\gamemodes\B-HOOD.pwn(232) : warning 219: local variable "using_deprecated_foreach_syntax" shadows a variable at a preceding level C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\gamemodes\B-HOOD.pwn(278) : error 017: undefined symbol "DONT_USE" C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\gamemodes\B-HOOD.pwn(353) : error 076: syntax error in the expression, or invalid function call C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\gamemodes\B-HOOD.pwn(358) : error 076: syntax error in the expression, or invalid function call C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\gamemodes\B-HOOD.pwn(358) : error 076: syntax error in the expression, or invalid function call C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\gamemodes\B-HOOD.pwn(362) : error 076: syntax error in the expression, or invalid function call C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\gamemodes\B-HOOD.pwn(367) : error 076: syntax error in the expression, or invalid function call C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\gamemodes\B-HOOD.pwn(367) : error 076: syntax error in the expression, or invalid function call C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\gamemodes\B-HOOD.pwn(372) : error 076: syntax error in the expression, or invalid function call C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\gamemodes\B-HOOD.pwn(377) : error 076: syntax error in the expression, or invalid function call C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\gamemodes\B-HOOD.pwn(377) : error 076: syntax error in the expression, or invalid function call C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\gamemodes\B-HOOD.pwn(381) : error 076: syntax error in the expression, or invalid function call C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\gamemodes\B-HOOD.pwn(386) : error 076: syntax error in the expression, or invalid function call C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\gamemodes\B-HOOD.pwn(386) : error 076: syntax error in the expression, or invalid function call C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\gamemodes\B-HOOD.pwn(397) : error 076: syntax error in the expression, or invalid function call C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\gamemodes\B-HOOD.pwn(397) : warning 215: expression has no effect C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\gamemodes\B-HOOD.pwn(402) : error 076: syntax error in the expression, or invalid function call C:\Users\crist\Desktop\HPQ123 samp gamemode actual cu tot ce trebuie\gamemodes\B-HOOD.pwn(402) : error 076: syntax error in the expression, or invalid function call
  4. Am mai rezolvat alte erori dupa modelul tau, dar desigur vin alte erori De exemplu la linia timer... warning 208: function with tag result used before definition, forcing reparse
  5. Da, acum primesc eroarea asta: fatal error 100: cannot read from file: "YSI\y_hooks". Am incercat sa pun fisierul y_hooks in fisierul YSI dar primesc aceeasi eroare
  6. Imi spune asta: fatal error 100: cannot read from file: "YSI_Data\y_iterate"
  7. Aceeasi eroare, cea cu natives
  8. Am dat putin mai sus un reply catre Banditul legat de eroarea pe care o primesc dupa ce am pus ultima versiune de YSI. Folosesc Zeex compiler.
  9. Dupa ce am pus ce este acolo in includes, primesc mesajul acesta: ...\pawno\include\foreach.inc(230) : fatal error 100: cannot read from file: "YSI\internal\y_natives"
  10. Inteleg, multumesc frumos pentru explicatie Edit: Oare ai putea sa imi dai un link de unde as putea sa iau ultima versiune? Multumesc
  11. Salut, am vazut pe internet 2 moduri pentru a scrie un foreach si sunt curios ce diferente sunt (daca sunt) intre foreach(Player, i) si foreach(new i : Player) inafara de modul de scriere, desigur.
  12. Nu este niciun timer. E ceva problema la una din comenzile /sspec sau /sspecoff
  13. Nu e neaparat sa fie 107, asta e valoarea pe care trebuie sa o puna pentru casa in care testez. De asta am pus 107 dar tot -1 pune
  14. Am incercat si asa iar cand dau /test imi spune ca la InHouse e -1... SetPlayerPos(playerid, InainteDeSpec[playerid][0], InainteDeSpec[playerid][1], InainteDeSpec[playerid][2]); InHouse[playerid] = 107;//inaintehouse[playerid]; InHQ[playerid] = inaintehq[playerid]; InBussines[playerid] = inaintebusiness[playerid]; SCMf(playerid, -1, "house: %d l hq: %d l Biz: %d", InHouse[playerid], InHQ[playerid], InBussines[playerid]); return true;
  15. YCMD:test(playerid, params[], help) { SCMf(playerid, -1, "pInt: %d l pLocal: %d l InHouse: %d l InHQ: %d l InBussines: %d", PlayerInfo[playerid][pInt], PlayerInfo[playerid][pLocal], InHouse[playerid], InHQ[playerid], InBussines[playerid]); return 1; }
  16. Salut, cand dau /sspecoff la inhouse in loc sa imi puna valoarea 107 imi pune valoarea -1 chiar daca la ultimul mesaj de la /sspecoff la in house imi spune 107. Aveti idee de ce? YCMD:sspec(playerid, params[], help) { if(aspam[playerid] > 0) return SCMf(playerid, COLOR_LIGHTRED, "[Command Anti-Spam] {FFFFFF}Wait %d %s.", aspam[playerid], aspam[playerid] > 1 ? "seconds" : "second"); if(PlayerInfo[playerid][pAdmin] < return SCM(playerid, COLOR_WHITE, AdminOnly); virtualw = GetPlayerVirtualWorld(playerid); new id,string[180]; if(sscanf(params, "u", id)) return SCM(playerid,COLOR_GREY, "Syntax: {FFFFFF}/spec <playerid/name>"); if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID) return SCM(playerid, COLOR_GREY, "That player is not connected."); if(id == playerid) return SCM(playerid, COLOR_GREY, "You can not use this command on you!"); if(PlayerInfo[id][pAdmin] > PlayerInfo[playerid][pAdmin]) return SCM(playerid, COLOR_GREY, "You can not use this command on that player."); if(IsPlayerLogged[id] == 0) return SCM(playerid, COLOR_LGREEN, "Error: That player is logging!"); Spectate[playerid] = id; SpecPlayers[playerid] ++; if(SpecPlayers[playerid] == 1) { GetPlayerPos(playerid, SpecPos[playerid][0], SpecPos[playerid][1], SpecPos[playerid][2]); IsPlayerSpec[playerid] = 1; pInteriorID[playerid] = GetPlayerInterior(playerid); pVirtual[playerid] = GetPlayerVirtualWorld(playerid); //inaintespec GetPlayerPos(playerid, InainteDeSpec[playerid][0], InainteDeSpec[playerid][1], InainteDeSpec[playerid][2]); inaintehouse[playerid] = InHouse[playerid]; inaintehq[playerid] = InHQ[playerid]; inaintebusiness[playerid] = InBussines[playerid]; //inaintespec } new Float:health; GetPlayerHealthEx(Spectate[playerid], health); new rank[50]; if(PlayerInfo[playerid][pAdmin] != 0) rank = "Admin"; else rank = "Helper"; if(GetPVarInt(id, "Reported") == 1 && GetPVarInt(id, "ReportType") != 4 && PlayerInfo[playerid][pAdmin] >= 1) { SetPVarInt(id, "Reported", 0); SetPVarInt(id, "ReportType", 0); SetPVarString(id, "ReportedBy", ""); SetPVarInt(id, "ReportScore", 0); SetPVarString(id, "ReportText", ""); } if(PlayerInfo[playerid][pAdmin] >= 1 && GetPVarInt(id, "ReportType") != 4) { PlayerInfo[playerid][pHelpedPlayers] += GetPVarInt(id, "ReportScore"); PlayerInfo[playerid][pHelpedPlayersToday] += GetPVarInt(id, "ReportScore"); } new szQuery[256]; mysql_format(SQL, szQuery, sizeof(szQuery), "UPDATE users SET `HelpedPlayers` = '%d', `HelpedPlayersToday`='%d' WHERE `ID` = '%d'", PlayerInfo[playerid][pHelpedPlayers], PlayerInfo[playerid][pHelpedPlayersToday], PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, szQuery, "", ""); format(string, sizeof(string), "[SPEC] (%d) %s | Level: %d | Health: %.2f | AFK Time: %d | Seconds: %.0f | Duty: %d | Ping: %d",id,GetName(id),PlayerInfo[id][pLevel], health, AFKSeconds[id], PlayerInfo[id][pSeconds], OnDuty[id], GetPlayerPing(id)); SCM(playerid, 0xFFADADFF, string); new Player_Weapons[13], Player_Ammos[13], i, guns; string = "Weapons:"; for(i = 1;i <= 12;i++) { GetPlayerWeaponData(id,i,Player_Weapons[i],Player_Ammos[i]); if(Player_Weapons[i] != 0) { new weaponName[180]; GetWeaponName(Player_Weapons[i],weaponName,255); format(string,255, "%s %s (%d)", string, weaponName,Player_Ammos[i]); guns ++; } } if(guns > 0) SCM(playerid, -1, string); Iter_Add(MySpec[id], playerid); TogglePlayerSpectating(playerid, 1); SetPlayerInterior(playerid, GetPlayerInterior(id)); SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(id)); if(IsPlayerInAnyVehicle(Spectate[playerid])) PlayerSpectateVehicle(playerid, GetPlayerVehicleID(Spectate[playerid])); else PlayerSpectatePlayer(playerid, Spectate[playerid]); PlayerTextDrawSetString(playerid, SpectatorTD, "Loading..."); PlayerTextDrawShow(playerid, SpectatorTD); return true; } YCMD:sspecoff(playerid, params[], help) { if(aspam[playerid] > 0) return SCMf(playerid, COLOR_LIGHTRED, "[Command Anti-Spam] {FFFFFF}Wait %d %s.", aspam[playerid], aspam[playerid] > 1 ? "seconds" : "second"); if(PlayerInfo[playerid][pAdmin] < return SCM(playerid, COLOR_WHITE, AdminOnly); if(Spectate[playerid] == 255) return SCM(playerid, COLOR_GREY, "You are not spectating a player."); TogglePlayerControllable(playerid, 1); TogglePlayerSpectating(playerid, 0); PlayerInfo[playerid][pInt] = pInteriorID[playerid]; PlayerInfo[playerid][pLocal] = pVirtual[playerid]; SetPlayerInterior(playerid, pInteriorID[playerid]); Unspec[playerid][sLocal] = 255; gTeam[playerid] = PlayerInfo[playerid][pTeam]; SetPlayerToTeamColor(playerid); SCM(playerid, -1, "You are no longer spectating!"); Iter_Remove(MySpec[Spectate[playerid]], playerid); Spectate[playerid] = 255; SpecPlayers[playerid] = 0; LastRecon[playerid] = 1; PlayerTextDrawHide(playerid, SpectatorTD); Iter_Clear(MySpec[playerid]); //inaintespec SetPlayerPos(playerid, InainteDeSpec[playerid][0], InainteDeSpec[playerid][1], InainteDeSpec[playerid][2]); InHouse[playerid] = inaintehouse[playerid]; InHQ[playerid] = inaintehq[playerid]; InBussines[playerid] = inaintebusiness[playerid]; SCMf(playerid, -1, "house: %d l hq: %d l Biz: %d", InHouse[playerid], InHQ[playerid], InBussines[playerid]); //inaintespec return true; }
  17. Salut, am gasit acest bug pe gm b-hood editat de hpq123, aveti idee cum pot rezolva? Descriere:
  18. Nu mai spune daca nu stii, random(10) merge de la 0 la 9. Nu ti-a iesit tentativa de baza pup
  19. Ai 11 case-uri iar tu ai new castig = 1 + random(10); care poate avea valoarea maxima 10, deci case 11 nu o sa fie niciodata atins. Pune new castig = 1 + random(11); si revino cu reply. Edit: iar la toate mesajele SCM, cred ca ai vrut sa pui SCMf (cel mai probabil ai functia asta definita in gm) pentru ca folosesti %s. Sau daca nu poti face cu format. new string[144]; format(string, sizeof(string), "Azi nu ai avut noroc si ai {FFFFFF}pierdut{CC0000} $%s!", FormatNumber(strval(inputtext))); SCM(playerid, COLOR_RED, string);
  20. TheGodfather

    Sters

    Fa mai multe topicuri
  21. Salut, merita ca un gamemode sa aiba 2 limbi? Cam cat ar afecta performanta acea verificare de limba in fiecare loc unde exista un mesaj?
×
×
  • 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.