Clock Error
#1

Okay, I have no clock in my game. So I tried downloading some Filterscripts for clocks, It shows the clock on the login screen but then it disappears when I press login.. Any solutions?






Reply
#2

Yes.
Goto your OnPlayerSpawn

I think there is a HideTextDraw ?
Remove it.


BTW. stick to your old topic about the clock
Reply
#3

Well, it worked but now the clock is appearing at the bottom..

Reply
#4

Are you sure that you didn't mess with any coords dealing with the clock textdraw?
Reply
#5

I don't believe so. I'd like for the clock to be inside the Gamemode but..I don't know how to script and to add this under OnPlayerConnect

public OnPlayerConnect(playerid)
{
SetTimer("TimeUpdate",65009, 1);
TogglePlayerClock(playerid, 1);
return 1;
}




public OnPlayerConnect(playerid)
{
new string[256], playername[MAX_PLAYER_NAME], file[255];
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "%s has joined RuNix's Cops And Robbers!", playername);
Announce(string);
IsPlayerLogged[playerid] = 0;
RecentlyRobbed[playerid] = 0;
SelectBM[playerid] = 0;
AMMUBOX[playerid] = 0;
CSKINZ[playerid] = 0;
CSKINU[playerid] = 0;
CSKIN[playerid] = 0;
CHALLBOX[playerid] = 0;
IcmdCar[playerid][CarcmdI] = -1;
IsSpawned[playerid] =0;
GPSTimer[playerid] = 0;
HaveGPS[playerid] = false;
Muted[playerid] = 0;
AccountInfo[playerid][aLevel] = 0;
//Text Draws
TextDrawShowForPlayer(playerid, BOX);
TextDrawShowForPlayer(playerid, Welcome);
TextDrawShowForPlayer(playerid, text1);
TextDrawShowForPlayer(playerid, text2);
TextDrawShowForPlayer(playerid, text3);
HaveTicket[playerid] = false;
new Registre[250];
format(file, sizeof(file), "%s.runix", playername);
if(fexist(file))
{
GetPlayerName(playerid,playername,MAX_PLAYER_NAME) ;
format(Registre,sizeof(Registre),"Welcome back %s!\n\nPlease Login to continue!",playername);
ShowPlayerDialog(playerid,LoginName,DIALOG_STYLE_I NPUT,"Login",Registre,"Login","Ban");
}
else
if(!fexist(file))
{
GetPlayerName(playerid,playername,MAX_PLAYER_NAME) ;
format(Registre,sizeof(Registre),"Welcome %s!\n\nPlease register to continue!",playername);
ShowPlayerDialog(playerid,RegisterName,DIALOG_STYL E_INPUT,"Register",Registre,"Register","Ban");
}
return true;
}
Reply
#6

Line 9854 public TimeWorld()
Line 9855 {
Line 9856 if(gametime == 0 && gameday == 7 && gameweek == 4)
Line 9857 {
Line 9858 SendRconCommand("gmx");
Line 9859 }


(9856) : error 029: invalid expression, assumed zero
(9856) : error 029: invalid expression, assumed zero
(9856) : error 029: invalid expression, assumed zero
Reply
#7

Bump
Reply
#8

Just toggle the players clock upon spawning
pawn Код:
public OnPlayerSpawn( playerid )
{
   TogglePlayerClock( playerid, 1 );
   return 1;
}
Reply
#9

Go it, kept adding } at the end..
How do you set gametime so it follows the server time?
Reply
#10

When you do "GMX" you got some bugs later of the restart, add a restarter (like "San Andreas Restarter", and instead use "SendRconCommand("gmx");" use: "GameModeExit();"
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)