global void:System_Scm(playerid, message[], type){
new string[128];
switch(type){
case TYPE_NOTICE:{
format(string, sizeof(string), "{f4d742}*{FFFFFF} %s", message);
}
case TYPE_ERROR:{
format(string, sizeof(string), "{c60000}*{FFFFFF} "COL_FADE"%s", message);
}
case TYPE_SUCCESS:{
format(string, sizeof(string), "{01aa0f}*{FFFFFF} %s", message);
}
}
SendClientMessage(playerid, -1, string);
return 1;
}
#define MASTER 6
#include <YSI\y_master>
foreign void:System_Scm(playerid, message, type);
In Gamemode: ./Functions.pwn(1832) : error 025: function heading differs from prototype ./Functions.pwn(1832) : error 025: function heading differs from prototype ./Functions.pwn(1832) : error 035: argument type mismatch (argument 2) ./Functions.pwn(1832) : fatal error 107: too many error messages on one line Include: error 079: inconsistent return types (array & non-array) |
Include: gFunctions.inc(10) : warning 208: function with tag result used before definition, forcing reparse Gamemode: error 004: function "System_Scm" is not implemented ./Functions.pwn(182 : error 010: invalid function or declaration |
Gamemode:
global void:System_Scm(playerid, string:message[], type){
new string[128]; // ERROR 10 here.
switch(type){
case TYPE_NOTICE:{
format(string, sizeof(string), "{f4d742}*{FFFFFF} %s", message);
}
case TYPE_ERROR:{
format(string, sizeof(string), "{c60000}*{FFFFFF} "COL_FADE"%s", message);
}
case TYPE_SUCCESS:{
format(string, sizeof(string), "{01aa0f}*{FFFFFF} %s", message);
}
}
SendClientMessage(playerid, -1, string);
}
Include:
#if defined FILTERSCRIPT
#define YSI_IS_CLIENT
#else
#define YSI_IS_SERVER
#endif
#define MASTER 6
#include <YSI\y_master>
foreign void:System_Scm(playerid, string:message[], type);