Posts: 186
Threads: 36
Joined: Dec 2017
guys i created an loading textdraw but i want it to load like
MDC System
like when i connect to server it must show
Loading
[=========]
like here i created Connecting Textdraw
now i want that the green color should be filled autmatically continued in some seconds
like MDC System
How can i do tht pls
Posts: 3,004
Threads: 12
Joined: May 2011
https://sampforum.blast.hk/showthread.php?tid=537468
Or create a looping timer that calls itself every few milliseconds, pushing another character to the bar.
You can use a variable to increase from 0 to 10 and when it reaches 10, you can stop the timer (by not recalling it again) and call the next phase (the textdraws to be shown or somethin')
Posts: 186
Threads: 36
Joined: Dec 2017
Quote:
Originally Posted by Kaperstone
https://sampforum.blast.hk/showthread.php?tid=537468
Or create a looping timer that calls itself every few milliseconds, pushing another character to the bar.
You can use a variable to increase from 0 to 10 and when it reaches 10, you can stop the timer (by not recalling it again) and call the next phase (the textdraws to be shown or somethin')
|
Quote:
Originally Posted by FaLLenGirL
It's cool to use dynamic textdraws but i think it is more simple, and it's also very easy to use something like this but with Progress Bar. Look here: https://sampforum.blast.hk/showthread.php?tid=537468. I know you asked how to do in a textdraw, but why not progress bar ? That's just a suggestion.
|
Quote:
Originally Posted by Coox
I agree with Kaperstone, you should just make a numbers increase from 0 to 10 or just place | characters to add themselves every second, you can also try ProgressBar
|
Thanks all
Posts: 186
Threads: 36
Joined: Dec 2017
PHP Code:
hook OnScriptInit() {
Iter_Init(pbar_Index);//434
}
hook OnPlayerDisconnect(playerid, reason) {
Iter_Clear(pbar_Index[playerid]);//438
}
hook OnScriptExit()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
DestroyAllPlayerProgressBars(i);
}//447
}
Symbol Already Defined in both 2 lines
and unmatched brace in 3rd line
help
Posts: 4,885
Threads: 57
Joined: Jun 2012
Reputation:
0
Fake assed loading screens!