Hoping for someone can help :s -
Michael@Belgium - 07.02.2011
Ok, at my previous topic nobody could reply/solve my problem...
[DERBY]
So you see i'm working for a derby server. But now i need much timers, and i don't know how to use it x)
I have already a countdown but i want another countdown for a round. The round takes 15 minutes ...
So i have that already:
pawn Код:
//above:
forward EndRound();
//OnGameModeInit()
SetTimer("EndRound",900000,0);
//so 1second = 1000 and 60sec/1min = 60000 AND 15min = 900 000 Im i right ? x)
//And this is my public:
public EndRound()
{
new winnername[MAX_PLAYER_NAME];
new wintext[256];
if (IsPlayerInAnyVehicle(playerid))
{
SendClientMessageToAll(COLOR_ORANGE, "The round has finished !");
}
else
{
GameTextForAll("Round Finished!", 5000, 5);
GetPlayerName(playerid,winnername,256);
format(wintext,256,"%s has won the match!",winnername);
SendClientMessageToAll(COLOR_ORANGE,wintext);
SendClientMessageToAll(COLOR_ORANGE, "New round start soon ...");
}
}
But i want to add the countdown on the screen ... so the ppl can see the round-countdown, like not i the middle of the screen but in the right corner ... on the bottom.
(if i need more help i'll post it here

)
Plzz help with my timers (a) ;pp
Re: Hoping for someone can help :s -
Spiral - 07.02.2011
Use textdraws, wiki it, or check another script.
Re: Hoping for someone can help :s -
Michael@Belgium - 07.02.2011
Quote:
Originally Posted by Spiral
Use textdraws, wiki it, or check another script.
|
aa :d yes ofcourse i was lookin' for that xp
btw: i have 2 errors :S
Код:
C:\Users\Michael\Desktop\GTA\Eigen server\gamemodes\derby1.pwn(558) : error 017: undefined symbol "playerid"
C:\Users\Michael\Desktop\GTA\Eigen server\gamemodes\derby1.pwn(565) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Line 558:
pawn Код:
if (IsPlayerInAnyVehicle(playerid))
//line 565:
GetPlayerName(playerid,winnername,256);
Above you see it too
Re: Hoping for someone can help :s -
Ironboy500[TW] - 07.02.2011
playerid isn't defined in callback you are running your script under.
Re: Hoping for someone can help :s -
alpha500delta - 07.02.2011
pawn Код:
forward EndRound(playerid);
public EndRound(playerid)
Re: Hoping for someone can help :s -
Michael@Belgium - 07.02.2011
Quote:
Originally Posted by Spiral
Use textdraws, wiki it, or check another script.
|
Yes now, i use TextDraws:
pawn Код:
Textdraw1 = TextDrawCreate(1.000000,432.000000,"End Round - ");
TextDrawAlignment(Textdraw1,0);
TextDrawBackgroundColor(Textdraw1,0x000000ff);
TextDrawFont(Textdraw1,1);
TextDrawLetterSize(Textdraw1,1.000000,1.600000);
TextDrawColor(Textdraw1,0x00ffff99);
TextDrawSetOutline(Textdraw1,1);
TextDrawSetProportional(Textdraw1,1);
TextDrawSetShadow(Textdraw1,1);
But how to add the timer IN the textdraw ?
Quote:
Originally Posted by alpha500delta
pawn Код:
forward EndRound(playerid);
public EndRound(playerid)
|
But i have that ?! Look above
Re: Hoping for someone can help :s -
Michael@Belgium - 07.02.2011
deleted..
Re: Hoping for someone can help :s -
alpha500delta - 07.02.2011
Quote:
Originally Posted by Michael@Belgium
Yes now, i use TextDraws:
pawn Код:
Textdraw1 = TextDrawCreate(1.000000,432.000000,"End Round - "); TextDrawAlignment(Textdraw1,0); TextDrawBackgroundColor(Textdraw1,0x000000ff); TextDrawFont(Textdraw1,1); TextDrawLetterSize(Textdraw1,1.000000,1.600000); TextDrawColor(Textdraw1,0x00ffff99); TextDrawSetOutline(Textdraw1,1); TextDrawSetProportional(Textdraw1,1); TextDrawSetShadow(Textdraw1,1);
But how to add the timer IN the textdraw ?
But i have that ?! Look above 
|
Nope you dont. You had without playerid, my code would fix your undefined symbol thingy
Re: Hoping for someone can help :s -
Michael@Belgium - 07.02.2011
Quote:
Originally Posted by alpha500delta
Nope you dont. You had without playerid, my code would fix your undefined symbol thingy
|
Ow yes >_< xD sorry ... ok you're right , thanks .. xd