Textdraw1 = TextDrawCreate(537.000000, 327.000000, "05:10");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 3);
TextDrawLetterSize(Textdraw1, 0.330000, 1.200000);
TextDrawColor(Textdraw1, -554567169);
TextDrawSetOutline(Textdraw1, 1);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetSelectable(Textdraw1, 0);
new CountDownTime;
new Timer:CountDownT;
new Text:TextDraw1;
stock CreateTimerText()
{
Textdraw1 = TextDrawCreate(537.000000, 327.000000, "05:10");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 3);
TextDrawLetterSize(Textdraw1, 0.330000, 1.200000);
TextDrawColor(Textdraw1, -554567169);
TextDrawSetOutline(Textdraw1, 1);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetSelectable(Textdraw1, 0);
CountDownTime = 5 * 60 + 10;
CountDownT = repeat UpdateText();
}
timer UpdateText[1000]()
{
if(CountDownTime == -1)
{
//Bugged? Safety..
stop CountDownT;
}
else if(CountDownTime == 0)
{
CountDownTime = -1;
//Over -> Do whatever you want before stop.. ^
stop CountDownT;
}
else
{
CountDownTime--;
new msg[15];
format(msg, sizeof(msg), "%i:%i", CountDownTime/60, CountDownTime%60);
TextDrawSetString(TextDraw1, msg);
}
return 1;
}
PHP код:
|
C:\Users\Mission\Desktop\Mission\filterscripts\Mission.pwn(87) : error 010: invalid function or declaration
C:\Users\Mission\Desktop\Mission\filterscripts\Mission.pwn(89) : error 010: invalid function or declaration
C:\Users\Mission\Desktop\Mission\filterscripts\Mission.pwn(92) : error 010: invalid function or declaration
C:\Users\Mission\Desktop\Mission\filterscripts\Mission.pwn(94) : error 010: invalid function or declaration
C:\Users\Mission\Desktop\Mission\filterscripts\Mission.pwn(98) : error 010: invalid function or declaration
C:\Users\Mission\Desktop\Mission\filterscripts\Mission.pwn(100) : error 010: invalid function or declaration
C:\Users\Mission\Desktop\Mission\filterscripts\Mission.pwn(104) : error 021: symbol already defined: "format"
C:\Users\Mission\Desktop\Mission\filterscripts\Mission.pwn(107) : error 010: invalid function or declaration
C:\Users\Mission\Desktop\Mission\filterscripts\Mission.pwn(84) : warning 204: symbol is assigned a value that is never used: "CountDownT"
C:\Users\Mission\Desktop\Mission\filterscripts\Mission.pwn(83) : warning 204: symbol is assigned a value that is never used: "CountDownTime"
C:\Users\Mission\Desktop\Mission\filterscripts\Mission.pwn(83 -- 109) : warning 203: symbol is never used: "TextDraw1"
C:\Users\Mission\Desktop\Mission\filterscripts\Mission.pwn(83 -- 109) : warning 203: symbol is never used: "msg"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
8 Errors.
new CountDownTime;
new CountDownTimer;
new Text:TextDraw1;
stock CreateTimerText()
{
Textdraw1 = TextDrawCreate(537.000000, 327.000000, "05:10");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 3);
TextDrawLetterSize(Textdraw1, 0.330000, 1.200000);
TextDrawColor(Textdraw1, -554567169);
TextDrawSetOutline(Textdraw1, 1);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetSelectable(Textdraw1, 0);
CountDownTime = 5 * 60 + 10;
CountDownTimer = SetTimer("counttimer",1000,true);
}
forward counttimer();
public counttimer()
{
if(CountDownTime <= 0)
{
CountDownTime = -1;
//TextDrawSetString(TextDraw1, "Mission Failed");
KillTimer(CountDownTimer);
}
else
{
CountDownTime--;
new msg[15];
format(msg, sizeof(msg), "%i:%i", CountDownTime/60, CountDownTime%60);
TextDrawSetString(TextDraw1, msg);
}
return 1;
}
PHP код:
|
if(EnterAllShips[playerid] == 9)
{
trying = CreateDynamicRaceCP(0, -2392.9497,2312.1875,-0.1095, -2392.9497,2312.1875,-0.1095, 5.0, -1, -1, playerid, 2000.0);
GameTextForPlayer(playerid, "~r~Goto Red Checkpoints To Finish This Shitt!", 5000, 3);
}
return 1;
}
need it showing textdraw + timer count down here
PHP код:
|
if(EnterAllShips[playerid] == 9)
{
trying = CreateDynamicRaceCP(0, -2392.9497,2312.1875,-0.1095, -2392.9497,2312.1875,-0.1095, 5.0, -1, -1, playerid, 2000.0);
GameTextForPlayer(playerid, "~r~Goto Red Checkpoints To Finish This Shitt!", 5000, 3);
CreateTimerText();
}
return 1;
}
PHP код:
|
C:\Mission\Mission\Desktop\Mission\filterscripts\Mission.pwn(74) : error 017: undefined symbol "Textdraw1"
C:\Users\Mission\Desktop\Mission\filterscripts\Mission.pwn(75) : error 017: undefined symbol "Textdraw1"
C:\Users\Mission\Desktop\Mission\filterscripts\Mission.pwn(76) : error 017: undefined symbol "Textdraw1"
C:\Users\Mission\Desktop\Mission\filterscripts\Mission.pwn(77) : error 017: undefined symbol "Textdraw1"
C:\Users\Mission\Desktop\Mission\filterscripts\Mission.pwn(78) : error 017: undefined symbol "Textdraw1"
C:\Users\Mission\Desktop\Mission\filterscripts\Mission.pwn(79) : error 017: undefined symbol "Textdraw1"
C:\Users\Mission\Desktop\Mission\filterscripts\Mission.pwn(80) : error 017: undefined symbol "Textdraw1"
C:\Users\Mission\Desktop\Mission\filterscripts\Mission.pwn(81) : error 017: undefined symbol "Textdraw1"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
8 Errors.
new Text:TextDraw1;
new Text:Textdraw1;