12.07.2010, 20:22
I don't really understand what you are trying to do with that code but I do understand that if you replace:
with :
The textdraws will hide after 500 milliseconds and I guess that's what you wanted to do?
Note: I have done nothing but change the time you set. If you have any problem or want something else, let me know.
Код:
foreach(Player,i) { switch(Texts) { case 1: { SetTimerEx("SendTxtMsgD",10000,0,"i",i); Texts=1; } case 2: { SetTimerEx("SendTxtMsgD",5000,0,"i",i); Texts=2; } case 3: { SetTimerEx("SendTxtMsgD",5000,0,"i",i); Texts=3; } case 4: { SetTimerEx("SendTxtMsgD",5000,0,"i",i); Texts=4; } case 5: { SetTimerEx("SendTxtMsgD",5000,0,"i",i); Texts=5; } } }
Код:
foreach(Player,i) { switch(Texts) { case 1: { SetTimerEx("SendTxtMsgD",500,0,"i",i); Texts=1; } case 2: { SetTimerEx("SendTxtMsgD",500,0,"i",i); Texts=2; } case 3: { SetTimerEx("SendTxtMsgD",500,0,"i",i); Texts=3; } case 4: { SetTimerEx("SendTxtMsgD",500,0,"i",i); Texts=4; } case 5: { SetTimerEx("SendTxtMsgD",500,0,"i",i); Texts=5; } } }
Note: I have done nothing but change the time you set. If you have any problem or want something else, let me know.