13.03.2009, 07:41
Hello i have a countdown thing but when its finished i wanted it to say "You Have Managed To Gain Access To The Vault Door''
But it says it but says it LOTS of times and never stops any ideas why? Thanks
But it says it but says it LOTS of times and never stops any ideas why? Thanks
Quote:
public robbingcasinovaultcountdown() { for(new i=0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(robbingcasinovault[i] >= 2) { robbingcasinovault[i] --; new string[256]; new robtimer; robtimer = (robbingcasinovault[i]); format(string, sizeof(string), "~y~OPENING DOOR~n~~b~STAY IN THE CHECKPOINT~n~~w~OPEN IN~r~ %d~w~ SECONDS",robtimer); GameTextForPlayer(i, string, 3000,3); } if(robbingcasinovault[i] == 1) { new string[256]; format(string, sizeof(string), "You Have Managed To Gain Access To The Vault Door"); SendClientMessage(i,COLOR_YELLOW2, string); } } } } |