SA-MP Forums Archive
Textdraw help - 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)
+--- Thread: Textdraw help (/showthread.php?tid=429286)



Textdraw help - MichaelWharton101 - 08.04.2013

code
Код:
	// Game time
	TimeTD = TextDrawCreate(36.000000, 430.000000,"~r~Game time: ~w~%d:%d:%d", thour, tmin, tsec);
	TextDrawBackgroundColor(TimeTD, 255);
	TextDrawFont(TimeTD,2);
	TextDrawSetShadow(TimeTD,0);
	TextDrawSetOutline(TimeTD,1);
	TextDrawAlignment(TimeTD,1);
	TextDrawLetterSize(TimeTD,0.200000,1.000000);
	TextDrawColor(TimeTD,COLOR_WHITE);
	TextDrawSetOutline(TimeTD, 1);
Error
Код:
C:\Users\MichaelWharton\Desktop\*\Other\SAMP server\A-RP\gamemodes\A-RP.pwn(3348) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\SAMP server\A-RP\gamemodes\A-RP.pwn(3348) : warning 202: number of arguments does not match definition
C:\Users\MichaelWharton\Desktop\*\Other\SAMP server\A-RP\gamemodes\A-RP.pwn(3348) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
What is wrong?


Re: Textdraw help - MichaelWharton101 - 09.04.2013

Need help bad, anyone please?


Re: Textdraw help - LukisHard - 09.04.2013

Whats the line 3348?


Re: Textdraw help - MichaelWharton101 - 09.04.2013

This line sir.

Код:
TimeTD = TextDrawCreate(36.000000, 430.000000,"~r~Game time: ~w~%d:%d:%d", thour, tmin, tsec);



Re: Textdraw help - LukisHard - 09.04.2013

Код:
TimeTD = TextDrawCreate(36.000000, 430.000000,"~r~Game time: ~w~%d:%d:%d");
3 Warnings to each 3 Parameters undefined or should not is there.


Re: Textdraw help - MichaelWharton101 - 09.04.2013

I do not think so, I have it defined already...

Код:
// Time System
new tsec,tmin,thour;
new Text:TimeTD;
new Seconds[MAX_PLAYERS];



Re: Textdraw help - MichaelWharton101 - 09.04.2013

Any idea?


Re: Textdraw help - Pawnie - 09.04.2013

Код:
new Text:TimeTD;
You got this?

EDIT: Also where are you placing those things? definitions for the tds


Re: Textdraw help - Ballu Miaa - 09.04.2013

Use this. You need to format a string to show variables in a string inside a Textdraw or SendClientMessage.
pawn Код:
// Game time
        new str[40];
        format(str,sizeof(str),"~r~Game time: ~w~%d:%d:%d", thour, tmin, tsec);
    TimeTD = TextDrawCreate(36.000000, 430.000000,str);
    TextDrawBackgroundColor(TimeTD, 255);
    TextDrawFont(TimeTD,2);
    TextDrawSetShadow(TimeTD,0);
    TextDrawSetOutline(TimeTD,1);
    TextDrawAlignment(TimeTD,1);
    TextDrawLetterSize(TimeTD,0.200000,1.000000);
    TextDrawColor(TimeTD,COLOR_WHITE);
    TextDrawSetOutline(TimeTD, 1);