Hello guys, I'm trying to use my gamemode functions in every filterscript, so follow Y_Master's instruction, I made an include and did it like he said and I got errors, here is my code:
In my gamemode:
In my include:
Errors:
In my gamemode:
PHP Code:
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;
}
PHP Code:
#define MASTER 6
#include <YSI\y_master>
foreign void:System_Scm(playerid, message, type);
Quote:
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) |