Graal Forums  

Go Back   Graal Forums > Development Forums > Level Design
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-06-2001, 01:11 AM
SilverAngel SilverAngel is offline
Registered User
Join Date: Mar 2001
Posts: 1
SilverAngel is on a distinguished road
Question

heres da damn script
tell me whats wrong.
thanks

-----------------------------

if (playerenters&&!server.vote) {
setarray server.vote,2;
vote[0] = 0;
vote[1] = 0;
}
if (strequals(#c,Vote Yes)&&!voted) {
vote[0]++;
set voted;
}
if (strequals(#c,Vote No)&&!voted) {
vote[1]++;
set voted;
}
if (playersays(results)) {
message Yes - #s(vote[0]) No - #s(vote[1]);
}
__________________
Temporary disabled
Stefan Knorr
Reply With Quote
  #2  
Old 03-06-2001, 02:31 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
It should look like this:

if (playerchats) {
if (!voted) {
if (strequals(#c,vote yes)) {
setstring server.voteyes,#v(strtofloat(#s(server.voteyes))+1 );
set voted;
}
if (strequals(#c,vote no)) {
setstring server.voteno,#v(strtofloat(#s(server.voteno))+1);
set voted;
}
}
if (strequals(#c,show results))
message Yes - #s(server.voteyes), No - #s(server.voteno);
}

The hardest part is probably the setstring thing,
but it is needed to store the result as a
server flag.
Reply With Quote
  #3  
Old 03-06-2001, 02:34 AM
Guest
Posts: n/a
Hey Angel your signature is way too big guy!
Reply With Quote
  #4  
Old 03-06-2001, 03:55 AM
FatherDante FatherDante is offline
Low res, high class!
FatherDante's Avatar
Join Date: Mar 2001
Location: Coming soon to the Super Famicon
Posts: 5,164
FatherDante will become famous soon enough
Send a message via ICQ to FatherDante Send a message via AIM to FatherDante
No way, that sig is coooool
__________________

Take off in your Bean-with-Bacon Megarocket,
defender of the galaxy, Commander Keen!
Reply With Quote
  #5  
Old 03-06-2001, 03:09 PM
Fai Fai is offline
!!!!!!!!!!!!!!!!!!!!!!!!!
Fai's Avatar
Join Date: Mar 2001
Location: New York
Posts: 4,491
Fai will become famous soon enough
Send a message via ICQ to Fai Send a message via AIM to Fai
It is um too big.
__________________
SIGNATURE
Reply With Quote
  #6  
Old 03-06-2001, 09:54 PM
Cali_2001 Cali_2001 is offline
Rusty Spoon
Cali_2001's Avatar
Join Date: Mar 2001
Location: New Jersey
Posts: 155
Cali_2001 is on a distinguished road
Send a message via ICQ to Cali_2001 Send a message via AIM to Cali_2001 Send a message via Yahoo to Cali_2001
Talking

Yea it is kinda big but atleast it looks cool ^_^
__________________


A cup full of sugar makes the medicine go...down?
Reply With Quote
  #7  
Old 01-06-2002, 12:35 AM
Andor_Admin1 Andor_Admin1 is offline
Registered User
Join Date: Nov 2001
Posts: 149
Andor_Admin1 is on a distinguished road
Um, Stefan's first post? *bump*
__________________
Account no longer in use -- Brandon_Bravo
Reply With Quote
  #8  
Old 01-06-2002, 04:53 AM
Faheria_LAT1 Faheria_LAT1 is offline
Seraphim Warrior
Faheria_LAT1's Avatar
Join Date: Oct 2001
Location: QUÉBEC!!!!!!1
Posts: 2,040
Faheria_LAT1 is on a distinguished road
Send a message via ICQ to Faheria_LAT1 Send a message via AIM to Faheria_LAT1
I lost the password to that account and ive been trying to get it back forever

It says "Temporarily disabled" o_O lol.. havent used it since March and now its disabled lol.. cool.

Hey wait.. What was the sig?? I just cant remember lol..
This was when there were no Scripting forum.. I guess O_o
__________________


"I like movies where the guy shoots stuff, and then it blows up, and then this other guy shoots him, and then the first guy drives through a Coke sign, and it blows up, and the car flips over in slow motion, and then the guy gets out and pops his arm back in place, and then they fight 'cause they're out of bullets, and the guy says something like "This is Walmart, boy...and you just got price-checked!" - Broken Saints

"There is no greater sorrow than to recall in misery when we were happy" - Dante

"If you know yourself but not the enemy, for every victory gained you will also suffer a defeat" - Sun Tzu, The Art Of War

"Kingdoms ...rising without word. Collapsing without warning." - Broken Saints

Account now used by Silver and Mmmmkay
yoshee15 account has run out :[[[
Reply With Quote
  #9  
Old 01-07-2002, 07:53 AM
thomasward thomasward is offline
Registered User
Join Date: Jan 2002
Location: Look behind you!
Posts: 346
thomasward is on a distinguished road
Send a message via AIM to thomasward
Shouldn't this thread be in the NPC scripting forum anyways?
__________________
Malhangaia Co Manager
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:15 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.