SA-MP Forums Archive
YSI 4.1 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: YSI 4.1 (/showthread.php?tid=643456)



YSI 4.1 - maksicnm - 20.10.2017

I updated YSI from very old to newest, i fixed almost all errors, but this...
Код HTML:
Code:
warning 201: redefinition of constant/macro (symbol "e_COMMAND_ERRORS")
C:\Users\iwanmf\Desktop\AG-RP\gamemodes\afera.pwn(1428) : error 021: symbol already defined: "COMMAND_ZERO_RET"
Whole code:
Код HTML:
enum e_COMMAND_ERRORS
{
    // The majority of these are even - odd numbers return "1" not "0".
    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".
}
forward e_COMMAND_ERRORS:OnPlayerCommandPerformed(playerid, cmdtext[], e_COMMAND_ERRORS:success);
public e_COMMAND_ERRORS:OnPlayerCommandReceived(playerid, cmdtext[], e_COMMAND_ERRORS:success)
{
    if(success != COMMAND_OK)
    {
        new string[128];
        format(string, sizeof(string), "{030CDE}[SM] {FF0000}Command %s doesn't exist !", cmdtext);
        SendClientMessage(playerid,-1, string);
        return COMMAND_OK;
    }
    return COMMAND_OK;
}
I take this code from issues/5..


Re: YSI 4.1 - elhanan - 21.10.2017

YSI 4.1 is not the latest version... check this out
https://github.com/Misiur/YSI-Includes


Re: YSI 4.1 - Zeth - 21.10.2017

Quote:
Originally Posted by elhanan
Посмотреть сообщение
YSI 4.1 is not the latest version... check this out
https://github.com/Misiur/YSI-Includes
I think he meant YSI 4.0.1 by 4.1 Check herehttps://github.com/Misiur/YSI-Includes/releases