count down 3d text - 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: count down 3d text (
/showthread.php?tid=571381)
count down 3d text -
Azula - 18.04.2015
Hello , i try to make a count down system with 3d text label
so please help me it's dosent work
PHP код:
enum Float:zTime = 300,
PHP код:
forward WriteLabelUpdate(); public WriteLabelUpdate(){
for(new i = 0; i < MAX_ZONESS; i++)
{
UpdateDynamic3DTextLabelText(tZone[i], 0xAA3333FF, "Capturer\nla zone");
if(ZoneInfo[i][zTaken] == 1){
format(s,s,"%s", ZoneInfo[i][zTime] /10 ); //30 mn
UpdateDynamic3DTextLabelText(tZone[i], 0x000000FF,s);
TimeDecharge[i] = SetTimer("UpDown", 900*60, true);
if(ZoneInfo[i][zTime] == 0 )
{
ZoneInfo[i][zTime] = 300;
ZoneInfo[i][zTaken] = 0;
KillTimer(TimeDecharge[i]);
}
}
}
}
forward UpDown(); public UpDown(){
for(new i = 0; i < MAX_ZONESS; i++)
{
ZoneInfo[i][zTime] --;
}
}
Thanks
Re: count down 3d text -
Mencent - 18.04.2015
Hello!
Try this:
PHP код:
forward WriteLabelUpdate();public WriteLabelUpdate(){
for(new i;i<MAX_ZONESS;i++){
UpdateDynamic3DTExtLabelText(tZone[i],0xAA3333FF,"Capturer\nla zone");
if(!ZoneInfo[i][zTaken])continue;
format(s,s,ZoneInfo[i][zTime] / 10);
UpdateDynamic3DTextLabelText(tZone[i],0x000000FF,s);
ZoneInfo[i][zTime] --;
if(!ZoneInfo[i][zTime])ZoneInfo[i][zTime]=300,ZoneInfo[i][zTaken]=0;
}
return 1;
}
Mencent
Re: count down 3d text -
Azula - 18.04.2015
why
format(s,s,ZoneInfo[i][zTime] / 10); ? thank you for reply
Re: count down 3d text -
Mencent - 18.04.2015
PHP код:
format(s,s,ZoneInfo[i][zTime] / 10);
is the same how
PHP код:
format(s,s,"%s", ZoneInfo[i][zTime] /10 );
Are there any problems or does it work?
Mencent
Re: count down 3d text -
Azula - 18.04.2015
dosent work no count down

^^