SA-MP Forums Archive
Really weird problem! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Really weird problem! (/showthread.php?tid=147326)



Really weird problem! - Jokerstyle - 11.05.2010

K, my problem is that I get warning although there shouldn'T be warning.

Warning:
Код:
C:\Dokumente und Einstellungen\Dani\Desktop\Ordner\GU\Server\sa-mp\cw\filterscripts\timertest.pwn(12) : warning 213: tag mismatch
C:\Dokumente und Einstellungen\Dani\Desktop\Ordner\GU\Server\sa-mp\cw\filterscripts\timertest.pwn(13) : warning 213: tag mismatch
C:\Dokumente und Einstellungen\Dani\Desktop\Ordner\GU\Server\sa-mp\cw\filterscripts\timertest.pwn(14) : warning 213: tag mismatch
C:\Dokumente und Einstellungen\Dani\Desktop\Ordner\GU\Server\sa-mp\cw\filterscripts\timertest.pwn(15) : warning 213: tag mismatch
C:\Dokumente und Einstellungen\Dani\Desktop\Ordner\GU\Server\sa-mp\cw\filterscripts\timertest.pwn(16) : warning 213: tag mismatch
C:\Dokumente und Einstellungen\Dani\Desktop\Ordner\GU\Server\sa-mp\cw\filterscripts\timertest.pwn(17) : warning 213: tag mismatch
C:\Dokumente und Einstellungen\Dani\Desktop\Ordner\GU\Server\sa-mp\cw\filterscripts\timertest.pwn(18) : warning 213: tag mismatch
Lines:
Код:
TimerCD = TextDrawCreate(548.000000, 24.000000, "~w~00~r~:~w~00");
TextDrawBackgroundColor(TimerCD, 255);
TextDrawFont(TimerCD, 3);
TextDrawLetterSize(TimerCD, 0.559999, 1.800000);
TextDrawColor(TimerCD, -1);
TextDrawSetOutline(TimerCD, 1);
TextDrawSetProportional(TimerCD, 0);
As far as I can see there is no reason for the warnings ;S


Re: Really weird problem! - RyDeR` - 11.05.2010

You propably have new TimerCD; at the top instead of new Text:TimerCD;


Re: Really weird problem! - Jokerstyle - 11.05.2010

no, I have that in top:
Код:
new Text:TimerCD;



Re: Really weird problem! - RyDeR` - 11.05.2010

Well, there's something not correct then. I just pasted your textdraw on, my mode and it compiled well.


Re: Really weird problem! - MWF2 - 11.05.2010

Hmmm...



I tested it in my GM and it works perfectly...Are you sure those are the right lines lol?


Re: Really weird problem! - DJDhan - 11.05.2010

Try this
Код:
TimerCD = TextDrawCreate(548.000000, 24.000000, "00:00");
TextDrawBackgroundColor(TimerCD, 255);
TextDrawFont(TimerCD, 3);
TextDrawLetterSize(TimerCD, 0.559999, 1.800000);
TextDrawColor(TimerCD, -1);
TextDrawSetOutline(TimerCD, 1);
TextDrawSetProportional(TimerCD, 0);



Re: Really weird problem! - Zh3r0 - 11.05.2010

Quote:
Originally Posted by DJDhan
Try this
Код:
TimerCD = TextDrawCreate(548.000000, 24.000000, "00:00");
TextDrawBackgroundColor(TimerCD, 255);
TextDrawFont(TimerCD, 3);
TextDrawLetterSize(TimerCD, 0.559999, 1.800000);
TextDrawColor(TimerCD, -1);
TextDrawSetOutline(TimerCD, 1);
TextDrawSetProportional(TimerCD, 0);
Lol...Learn scripting badass xD

the ~w~ is for white text and ~r~ for red text...jeesh