textdraw help
#1

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
Reply
#2

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')
Reply
#3

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.
Reply
#4

Quote:
Originally Posted by Kaperstone
View Post
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')
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
Reply
#5

Quote:
Originally Posted by Kaperstone
View Post
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
View Post
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
View Post
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
Reply
#6

PHP Code:
hook OnScriptInit() {
    
Iter_Init(pbar_Index);//434
}

hook OnPlayerDisconnect(playeridreason) {
    
Iter_Clear(pbar_Index[playerid]);//438
}

hook OnScriptExit()
{
    for(new 
0MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
            
DestroyAllPlayerProgressBars(i);
    }
//447
}

Symbol Already Defined in both 2 lines
and unmatched brace in 3rd line 

help 
Reply
#7

Fake assed loading screens!
Reply
#8

Quote:
Originally Posted by Pottus
View Post
Fake assed loading screens!
I hate them too
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)