Jump to content

[REZOLVAT] Eroare onplayercommandreceived


Jakewow
 Share

Recommended Posts

  • Username: Jakewow
  • Problema întălnită: Deci vreau sa adaug publicul onplayercommandreceived pentru YSI (cea mai noua versiune) si primesc multe erori
  • Detalii despre problemă: 
  • Ce ai încercat să faci înainte să postezi?: nu prea stiu ce sa fac
  • Cod sursă (recomandat pastebin.com) : Fix asta am in gm https://pastebin.com/LzMric8n
  • Alte detalii: Erorile astea
    C:\pawno\include\YSI\..\YSI_Visual\y_commands/impl.inc(179) : error 025: function heading differs from prototype
    C:\Users\Daniel\Desktop\BIG GAMEMODE\gamemodes\community.pwn(267) : warning 201: redefinition of constant/macro (symbol "e_COMMAND_ERRORS")
    C:\Users\Daniel\Desktop\BIG GAMEMODE\gamemodes\community.pwn(268) : error 021: symbol already defined: "COMMAND_ZERO_RET"
    C:\Users\Daniel\Desktop\BIG GAMEMODE\gamemodes\community.pwn(278) : error 025: function heading differs from prototype
    C:\Users\Daniel\Desktop\BIG GAMEMODE\gamemodes\community.pwn(279) : warning 213: tag mismatch: expected tag "e_COMMAND_ERRORS", but found none ("_")
    C:\Users\Daniel\Desktop\BIG GAMEMODE\gamemodes\community.pwn(279) : error 029: invalid expression, assumed zero
    C:\Users\Daniel\Desktop\BIG GAMEMODE\gamemodes\community.pwn(279) : error 029: invalid expression, assumed zero
    C:\Users\Daniel\Desktop\BIG GAMEMODE\gamemodes\community.pwn(279) : error 029: invalid expression, assumed zero
    C:\Users\Daniel\Desktop\BIG GAMEMODE\gamemodes\community.pwn(279) : fatal error 107: too many error messages on one line
    
    Compilation aborted.
    
    Pawn compiler 3.10.8	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    
    7 Errors.
    [Finished in 0.9s with exit code 1]
Link to comment
Share on other sites

  • Administrator
enum e_COMMAND_ERRORS
{
       COMMAND_ZERO_RET      = 0 , // The command returned 0.
       COMMAND_OK            = 1 , // Called corectly.
       COMMAND_UNDEFINED     = 2 , // Command doesn't exist.
       COMMAND_DENIED        = 3 , // Can't use the command.
       COMMAND_HIDDEN        = 4 , // Can't use the command don't let them know it exists.
       COMMAND_NO_PLAYER     = 6 , // Used by a player who shouldn't exist.
       COMMAND_DISABLED      = 7 , // All commands are disabled for this player.
       COMMAND_BAD_PREFIX    = 8 , // Used "/" instead of "#", or something similar.
       COMMAND_INVALID_INPUT = 10, // Didn't type "/something".
}

E deja declarat in y_commands, nu trebuie sa-l incluzi si tu in gamemode.

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...