View Single Post
Old 05/12/2010, 03:37 AM   #3
XePloiT
Huge Clucker
 
XePloiT's Avatar
 
Join Date: Nov 2010
Posts: 299
Reputation: 0
Default Re: HappyHour problem!!

Somewhere at the top:
pawn Code:
new RandomPlayer[MAX_PLAYERS],p=0;
OnPlayerConnect:
pawn Code:
RandomPlayer[p]=playerid;
p++;
Where you want to use it:
pawn Code:
new rand = random(sizeof(RandomPlayer));
HappyH(RandomPlayer[rand]);

hm try this... im not sure if this is the best solution but i think it will work...
__________________
You can find me as "AlExEy" in other forums and places.
"Sex is always the answer, it's never a question,'Cause the answer is yes"
Code:
[ r? ] - 0% [ rAdmin + rBank ] - 99% [ rVehHouse - rHouse + rVehicle ] - 99% [ rWeapon + rExp ] - 5% [ rClan ] - 50% The Whole [ rSystem ] - 63% 100% Dynamic & 100% MySql Database Why 99%? - Cuz Nothin' is Perfect. Releases: rVote - Voting/Poll Script

XePloiT is offline