:/ I get this warning for no reason [+REP]
#1

Код:
        new PlayerText:Textdraw0;
 	CreatePlayerTextDraw(playerid,501.000000, 100.000000, "Score: %i",GetPlayerScore(playerid));
	PlayerTextDrawBackgroundColor(playerid,Textdraw0, -1);
	PlayerTextDrawFont(playerid,Textdraw0, 1);
	PlayerTextDrawLetterSize(playerid,Textdraw0, 0.320000, 0.799999);
	PlayerTextDrawColor(playerid,Textdraw0, 65535);
	PlayerTextDrawSetOutline(playerid,Textdraw0, 1);
	PlayerTextDrawSetProportional(playerid,Textdraw0, 1);
	PlayerTextDrawUseBox(playerid,Textdraw0, 1);
	PlayerTextDrawBoxColor(playerid,Textdraw0, 0x00000044);
	PlayerTextDrawTextSize(playerid,Textdraw0, 606.000000, 0.000000);
I get this
Код:
warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Reply
#2

You need to format strings.
Код:
new string[18];
format(string, sizeof(string), "Score: %i", GetPlayerScore(playerid));
CreatePlayerTextDraw(playerid, 501.000000, 100.000000, string);
Reply
#3

Thanks!Repped!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)