:/ I get this warning for no reason [+REP] - 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: :/ I get this warning for no reason [+REP] (
/showthread.php?tid=605995)
:/ I get this warning for no reason [+REP] -
[SU]Spartan - 28.04.2016
Код:
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.
Re: :/ I get this warning for no reason [+REP] -
CalvinC - 28.04.2016
You need to format strings.
Код:
new string[18];
format(string, sizeof(string), "Score: %i", GetPlayerScore(playerid));
CreatePlayerTextDraw(playerid, 501.000000, 100.000000, string);
Re: :/ I get this warning for no reason [+REP] -
[SU]Spartan - 28.04.2016
Thanks!Repped!