Воскресенье, 20.07.2025, 10:55

Мой блог

Главная | Регистрация | Вход
Приветствую Вас Гость
RSS
Форма входа
Календарь
«  Октябрь 2012  »
Пн Вт Ср Чт Пт Сб Вс
1234567
891011121314
15161718192021
22232425262728
293031
Поиск
Друзья сайта
Статистика

Дневник


Главная » 2012 » Октябрь » 27

// this message will be IM'd to the voter after they vote
string g_THANKS_MSG = "Thanks for voting";
// this will be in the hover text over the prim
string g_HOVER_TEXT = "Vote for me!";

// -- dont need to edit anything below here probably unless you want to change
// how the message is delivered when someone votes. see: touch_start --
integer g_VOTES = 0;
// list of avis that voted
list g_VOTERS;

// ------------------------------------------------------------------------
update()
{
llSetText( g_HOVER_TEXT + "\n" + (string)g_VOTES + " votes", <1,1,1>, 1.0 );
}

// ------------------------------------------------------------------------
integer addVote( key id )
{
// check memory and purge the list if we are getting full
if( llGetFreeMemory() < 1000 ) {
g_VOTERS = [];
}

// make sure they have not voted already
if( llListFindList( g_VOTERS, [id] ) == -1 ... Читать дальше »
Просмотров: 1130 | Добавил: volldemar | Дата: 27.10.2012 | Комментарии (0)

Copyright MyCorp © 2025
Сайт управляется системой uCoz