Textdraw help
#1

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?
Reply
#2

Need help bad, anyone please?
Reply
#3

Whats the line 3348?
Reply
#4

This line sir.

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

Код:
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.
Reply
#6

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

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

Any idea?
Reply
#8

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

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

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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)