All pastes #593089 Raw Edit

failing set_int

public text v1 · immutable
#593089 ·published 2007-06-28 03:47 UTC
rendered paste body
#include "plugin.h"


PLUGIN_HEADER


static struct plugin_api* rb;


enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
{
    (void)parameter;

    rb = api;


    int temp;
    rb->set_int("Starting Level", "", UNIT_INT, &temp, NULL,
                            1, 1, 9, NULL );


    rb->splash(2 * HZ, "Got value: %d", temp);

    return PLUGIN_OK;
}