28.04.2016, 06:14
I am using it OnPlayerUpdate
I get these warnings
Код:
new PlayerText:Textdraw0; new string[18]; format(string, sizeof(string), "Score: %i", GetPlayerScore(playerid)); CreatePlayerTextDraw(playerid, 501.000000, 100.000000, string); 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); PlayerTextDrawSetSelectable(playerid,Textdraw0, 0);
Код:
warning 219: local variable "string" shadows a variable at a preceding level warning 219: local variable "string" shadows a variable at a preceding level Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings.