You should
not ignore the number before the error (14)
Code:
.sp(14) : error 092: number of arguments does not match definition
Means that your error is on line 14, which is:
PHP Code:
eEvent.SetString("funfact_token", "<b><font color='#ffa500' class='fontSize-xl'>TEXT</font></b> %s\n TEXT TEXT", sBuffer);
https://sm.alliedmods.net/new-api/ev...vent/SetString
SetString only receives two parameters and you are passing three.
Try:
PHP Code:
#include <sourcemod>
public void OnPluginStart()
{
RegConsoleCmd("sm_code", Command_Test);
}
public Action Command_Test(int client, int args)
{
char sBuffer[512];
FormatEx(sBuffer, sizeof(sBuffer), "<b><font color='#ffa500' class='fontSize-xl'>TEXT</font></b> %s\n TEXT TEXT", sBuffer);
Event eEvent = CreateEvent("cs_win_panel_round", true);
eEvent.SetString("funfact_token", sBuffer);
eEvent.SetInt("hint_timeout", 10);
eEvent.SetInt("userid", -1);
eEvent.FireToClient(client);
eEvent.Cancel();
return Plugin_Handled;
}
__________________