23.07.2012, 09:49
I got some error while I was compiling this code
This is the error,
Please tell my mistakes, thanks
pawn Код:
new string[128], gethour, getmin, getsec; //line 22663
gettime(thour, tmin, tsec);//line 22664
new Day, Month, Year;//line 22665
getdate(Year, Month, Day);//line 22666
if(thour <= 9){format(gethour, sizeof(gethour), "0%d", thour);} else {format(gethour, sizeof(gethour), "%d", thour);} //line 22667
if(tmin <= 9){format(getmin, sizeof(getmin), "0%d", tmin);} else {format(getmin, sizeof(getmin), "%d", tmin);}
if(tsec <= 9){format(getsec, sizeof(getsec), "0%d", tsec);} else {format(getsec, sizeof(getsec), "%d", tsec);}
format(string, sizeof(string), "~b~~h~~h~Game Time: ~w~%s:%s:%s", gethour, getmin, getsec);
TextDrawSetString(TimeTD, string);
Код:
D:\Program Files\SAMP\SAMP SERVER\zRP 0.3e\gamemodes\ZRP.pwn(22667) : error 035: argument type mismatch (argument 1) D:\Program Files\SAMP\SAMP SERVER\zRP 0.3e\gamemodes\ZRP.pwn(22667) : error 035: argument type mismatch (argument 1) D:\Program Files\SAMP\SAMP SERVER\zRP 0.3e\gamemodes\ZRP.pwn(22667) : error 035: argument type mismatch (argument 1) D:\Program Files\SAMP\SAMP SERVER\zRP 0.3e\gamemodes\ZRP.pwn(22667) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.