2 registered members (Akow, tomaslolo),
1,536
guests, and 12
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: making a loading wait
[Re: MMike]
#331019
07/01/10 15:49
07/01/10 15:49
|
Joined: Jul 2004
Posts: 1,710
MMike
OP
Serious User
|
OP
Serious User
Joined: Jul 2004
Posts: 1,710
|
tryed wait_for(load_wait(300,300,200)); error("ok"); but the ok appear immediatly which is not true because my real load_wait function is this:
function load_wait(short a, short b, var time){
PANEL* ar=pan_create("bmap=loading_map;",5);
var timex=0;
fade_pan_in(ar);
pan_set(ar,a,b);
pan_setcenter(ar); //middle rotation point default
while(timex<time){
ar.angle-=2.3;
timex++;
wait(1);}
fade_pan_out(ar);
ptr_remove(ar);
}
PS: Some commands make part of my own Function library, so it wont work on your side.
Last edited by MMike; 07/01/10 15:52.
|
|
|
Re: making a loading wait
[Re: MMike]
#331020
07/01/10 15:51
07/01/10 15:51
|
Joined: Aug 2007
Posts: 1,922 Schweiz
Widi
Serious User
|
Serious User
Joined: Aug 2007
Posts: 1,922
Schweiz
|
wrong: wait_for(load_wait(300,300,200));
use: load_wait(300,300,200); wait_for(load_wait);
Last edited by Widi; 07/01/10 15:53.
|
|
|
Re: making a loading wait
[Re: Widi]
#331021
07/01/10 15:53
07/01/10 15:53
|
Joined: Jul 2004
Posts: 1,710
MMike
OP
Serious User
|
OP
Serious User
Joined: Jul 2004
Posts: 1,710
|
like this? : load_wait(300,300,200); wait_for(load_wait);
next to each right? (since i have to call the load_wait with the right parameters.
Last edited by MMike; 07/01/10 15:53.
|
|
|
Re: making a loading wait
[Re: MMike]
#331023
07/01/10 15:54
07/01/10 15:54
|
Joined: Jul 2004
Posts: 1,710
MMike
OP
Serious User
|
OP
Serious User
Joined: Jul 2004
Posts: 1,710
|
Thanks it worked.
Off-topic, your speak pT?
Last edited by MMike; 07/01/10 15:54.
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|