![]() |
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]); } |
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. |
Hey Angel your signature is way too big guy!
|
No way, that sig is coooool
|
It is um too big.
|
Yea it is kinda big but atleast it looks cool ^_^
|
Um, Stefan's first post? *bump*
|
I lost the password to that account x_x 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 |
Shouldn't this thread be in the NPC scripting forum anyways?
|
| All times are GMT +2. The time now is 03:52 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.