textdraw help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: textdraw help (
/showthread.php?tid=649692)
textdraw help -
BulletRaja - 13.02.2018
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
Re: textdraw help -
Kaperstone - 13.02.2018
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')
Re: textdraw help -
FaLLenGirL - 13.02.2018
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.
Re: textdraw help -
Coox - 13.02.2018
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')
|
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
Re: textdraw help -
BulletRaja - 14.02.2018
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
Re: textdraw help -
BulletRaja - 14.02.2018
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
Re: textdraw help -
Pottus - 14.02.2018
Fake assed loading screens!
Re: textdraw help -
Mugala - 14.02.2018
Quote:
Originally Posted by Pottus
Fake assed loading screens!
|
I hate them too