View Single Post
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-03-2011 , 19:35   Re: Spectator Hud Information
Reply With Quote #20

It explicits the argument where you put usually the flags in set_task. "b" meaning infinite loop. It's the same writing : set_task( 0.1, "UpdateSpecHud", _, _, _, "b" ); or set_task( 0.1, "UpdateSpecHud", 0, "", 0, "b" );. To avoid to write that and since you use only the flags, you can explicit the argument name (name you find in the function header) using ".". You can do that because all the arguments here have a default value. You could type for example : set_task( 0.1, "Blabla", .id = 666, .flags = "a", .repeat = 5 );.
__________________

Last edited by Arkshine; 06-03-2011 at 19:40. Reason: vz
Arkshine is offline