The error means SM thinks there's something wrong with the compiled code.
You can try using the latest SM and compiler (either 1.9 or 1.10). If you already are, then you should provide the actual source code you're compiling.
If you're using an older versions of SM or the compiler (or ones you've modified), you're on your own.
Just for testing, I tried the following code with the 1.9 compiler:
PHP Code:
public void OnPluginStart() {
foo();
}
int GetTargetToName(char[] s) { return 1; }
public Action foo() {
int Client = 1;
int wup[2];
char Msg[2][64] = { "", "!강화포인트" };
char s_Buffer[3][64] = { "a", "b", "3" };
char s_Name[64];
if(StrContains(Msg[1], "!강화포인트") != -1)
{
if(!StrEqual(s_Buffer[1], "", false) || !StrEqual(s_Buffer[2], "", false))
{
new Target = GetTargetToName(s_Buffer[1]);
new wuppoint = StringToInt(s_Buffer[2]);
if(Target == -1)
{
PrintToChat(Client, "\x070FF0FF[%s]\x01이라는 닉네임이 없습니다.", s_Buffer[1]);
return Plugin_Handled;
}
if(Target == 0)
{
PrintToChat(Client, "\x070FF0FF중복되는 사람이 있습니다.");
return Plugin_Handled;
}
GetClientName(Target, s_Name, sizeof(s_Name));
PrintToServer("\x070FF0FF[%s]\x01님에게 강화 포인트를\x03[%d]\x01포인트를 드렸습니다.", s_Name, wuppoint);
//PrintToChat(Client, "\x070FF0FF[%s]\x01님에게 강화 포인트를\x03[%d]\x01포인트를 드렸습니다.", s_Name, wuppoint);
PrintToServer("\x070FF0FF[Admin]\x01님께서 강화 포인트를\x03[%d]\x01포인트를 드렸습니다.", wuppoint);
//PrintToChat(Target, "\x070FF0FF[Admin]\x01님께서 강화 포인트를\x03[%d]\x01포인트를 드렸습니다.", wuppoint);
wup[Target] += wuppoint;
}
else PrintToServer("\x070FF0FF사용법 : \x03!강화포인트 <닉네임> <포인트>");
//else PrintToClient(Client, "\x070FF0FF사용법 : \x03!강화포인트 <닉네임> <포인트>");
return Plugin_Handled;
}
return Plugin_Continue;
}
It compiles and runs. I see the two expected lines printed.