Help, voting crap - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help, voting crap (
/showthread.php?tid=320466)
Help, voting crap -
Marco_Valentine - 23.02.2012
Ok, i want to know how to define if the number of people that voted yes is more than the amount of players that are online.
So far i have it so it counts the number of players online and it counts how many players vote yes.
What do i do with the two?
This is what i've come up with so far
Код:
if(Yes > (PlayersOnline){
But that wont work. I need it to check if there are more votes than there are half the player online D:
Re: Help, voting crap -
coole210 - 23.02.2012
pawn Код:
If(Yes > (PlayersOnline / 2)){
Re: Help, voting crap -
Marco_Valentine - 23.02.2012
thanks bro
Re: Help, voting crap -
Marco_Valentine - 23.02.2012
error 076: syntax error in the expression, or invalid function call