Posted By: MMike
making a loading wait - 07/01/10 15:33
hello
i tried ti make a function that waits for something and then return, and keep the function going.
function load_wait(int* a){
wait(-2);
*a=2;
}
function main(){
int evl;
load_wait(&evl);
while(evl!=2){wait(1);}
error("ok");
}
the problem is you never see the ok message.
i tried ti make a function that waits for something and then return, and keep the function going.
function load_wait(int* a){
wait(-2);
*a=2;
}
function main(){
int evl;
load_wait(&evl);
while(evl!=2){wait(1);}
error("ok");
}
the problem is you never see the ok message.