Raised This Month: $ Target: $400
 0% 

Does not start the server


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
PreDominance
Member
Join Date: Jul 2014
Old 08-08-2014 , 10:26   Re: Does not start the server
Reply With Quote #4

I won't write all of the code for you, but there's a trick you can do with set_task. If you look at the documentation for set_task, you'll notice you can set an ID for the task.
A common practice to execute tasks repeatedly per-player is to do something like..
Code:
#define TASK_LOOP_CREDITS    200 // <-- task it show_credits(id)// <-- player id {     set_task("0.5", "loop_credits", TASK_LOOP_CREDITS + id, _, _, "b", _); } public loop_credits(id) { //<-- task id     new pId = id - TASK_LOOP_CREDITS; // task id - playerid  - task id..or player id     //do stuff }
Hopefully you can understand the code there.

*Edit
WYSYG editing sucks.

Last edited by PreDominance; 08-08-2014 at 10:30.
PreDominance is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:59.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode