I got these logs:
PHP Code:
L 01/22/2015 - 22:53:36: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 01/22/2015 - 22:53:36: [SM] Native "SetMenuTitle" reported: String formatted incorrectly - parameter 3 (total 3)
L 01/22/2015 - 22:53:36: [SM] Displaying call stack trace for plugin "noscope.smx":
L 01/22/2015 - 22:53:36: [SM] [0] Line 162, C:\Users\Angel\Documents\sourcepawn\noscope.sp::Cmd_NoscopeVoteRun()
And this is the related code:
PHP Code:
public Action:Cmd_NoscopeVoteRun(client, args)
{
if (!IsVoteInProgress())
{
new votedelay = CheckVoteDelay();
if (votedelay == 0)
{
new Handle:menu = CreateMenu(Handle_NoscopeMenu, MENU_ACTIONS_ALL);
SetVoteResultCallback(menu, Handle_VoteResultsNoscope);
SetMenuTitle(menu, "%T", "Menu Title");
AddMenuItem(menu, "CHOICEyes", "YES");
AddMenuItem(menu, "CHOICEno", "NO");
SetMenuExitButton(menu, false);
VoteMenuToAll(menu, 20);
}else {
PrintToChat(client, "%T", "Vote delay", votedelay);
}
} else {
PrintToChat(client, "%T", "Vote in Progres");
}
return Plugin_Continue;
}