textdraw proplem for clock
#1

right i have a proplem only 2 things are wrong

C:\Users\brian d to the j\Desktop\samp server shit\pwn\pTc.pwn(1056) : error 029: invalid expression, assumed zero
C:\Users\brian d to the j\Desktop\samp server shit\pwn\pTc.pwn(1056) : error 004: function "Clock" is not implemented
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.


Textdraw99 = TextDrawCreate(450.000000,5.000000, "--");
Textdraw88 = TextDrawCreate(551.000000,23.000000,"--");
TextDrawAlignment(Textdraw99,0);
TextDrawAlignment(Textdraw88,0);
TextDrawBackgroundColor(Textdraw99,0x0000ffff);
TextDrawBackgroundColor(Textdraw88,0x0000ffff);
TextDrawFont(Textdraw99,2);
TextDrawLetterSize(Textdraw99,0.499999,1.500000);
TextDrawFont(Textdraw88,2);
TextDrawLetterSize(Textdraw88,0.399999,2.000000);
TextDrawColor(Textdraw99,0x00ffffff);
TextDrawColor(Textdraw88,0x00ffffff);
TextDrawSetOutline(Textdraw99,1);
TextDrawSetOutline(Textdraw88,1);
TextDrawSetProportional(Textdraw99,1);
TextDrawSetProportional(Textdraw88,1);
TextDrawSetShadow(Textdraw99,1);
TextDrawSetShadow(Textdraw88,1);

public Clock(playerid){

new string[256];
new string2[256];
new year, month, day;
new hour, minute, second;
getdate(year, month, day);
gettime(hour,minute,second);
new mtext[20];
getdate(year, month, day);
if(month == 1) { mtext = "January"; }
else if(month == 2) { mtext = "February"; }
else if(month == 3) { mtext = "March"; }
else if(month == 4) { mtext = "April"; }
else if(month == 5) { mtext = "May"; }
else if(month == 6) { mtext = "June"; }
else if(month == 7) { mtext = "July"; }
else if(month == { mtext = "August"; }
else if(month == 9) { mtext = "September"; }
else if(month == 10) { mtext = "October"; }
else if(month == 11) { mtext = "November"; }
else if(month == 12) { mtext = "December"; }
format(string, sizeof(string), "%d %s, %d", day, mtext, year);
TextDrawSetString(Text:Textdraw99, string);
format(string2, sizeof(string2), "%d:%d:%d", hour, minute, second);
TextDrawSetString(Text:Textdraw88, string2);
}

}
return 1;
}
this is placed under Ongamemodeinit

and i have put forward Clock(playerid);
and TextDrawShowForPlayer(playerid, Textdraw99);
TextDrawShowForPlayer(playerid, Textdraw8; under on player connect
but it still wont appear ingame play
Reply
#2

pleasei need help with this gm is neally done
Reply
#3

You can't call functions like that, remove Clock() from OnGameModeInit(), move it somewhere else then call it where needed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)