04.05.2015, 04:11
Solve it with:
Код:
/* List of enum: // 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". */ public e_COMMAND_ERRORS:OnPlayerCommandPerformed(playerid, cmdtext[], e_COMMAND_ERRORS:success); { switch(success) { // case bla bla: /* Example: case COMMAND_DENIED: { Ban(playerid); // Ban them because using our secret command >_< lol } */ } return COMMAND_OK; }
Quote:
I decided to update to YSI 4.0 and when i did i ran in to some problems while compiling
Код:
C:\Users\Win7\Desktop\sa-mp 0.3.7\pawno\include\YSI\..\YSI_Visual\y_commands/impl.inc(229) : error 025: function heading differs from prototype C:\Users\Win7\Desktop\sa-mp 0.3.7\pawno\include\YSI\..\YSI_Visual\y_commands/impl.inc(1329) : error 021: symbol already defined: "@yH_OnScriptInit@003" C:\Users\Win7\Desktop\sa-mp 0.3.7\pawno\include\YSI\..\YSI_Visual\y_commands/impl.inc(1330) : error 021: symbol already defined: "@yH_OnScriptInit@003" C:\Users\Win7\Desktop\sa-mp 0.3.7\pawno\include\YSI\..\YSI_Visual\y_commands/impl.inc(1369) : warning 209: function "@yH_OnScriptInit@003" should return a value C:\Users\Win7\Desktop\Sa-mp 0.3.7\gamemodes\wip.pwn(1654) : error 025: function heading differs from prototype pawn Код:
|