Need Help - argument type missmatch on if
#1

I got some error while I was compiling this code

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);
This is the error,
Код:
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.
Please tell my mistakes, thanks
Reply


Messages In This Thread
Need Help - argument type missmatch on if - by IceMeteor - 23.07.2012, 09:49
Re: Need Help - argument type missmatch on if - by Kindred - 23.07.2012, 09:54
Re: Need Help - argument type missmatch on if - by ReneG - 23.07.2012, 09:55
Re: Need Help - argument type missmatch on if - by IceMeteor - 23.07.2012, 10:13
Re: Need Help - argument type missmatch on if - by Kindred - 23.07.2012, 10:15
Re: Need Help - argument type missmatch on if - by IceMeteor - 23.07.2012, 10:23

Forum Jump:


Users browsing this thread: 1 Guest(s)