13.04.2017, 00:38
Hi Guys Today i Was Working On a Textdraw that shows Player Score & Money So I Got Two Warnings + The Textdraw isn't in it's Position Here is My Code:
Warnings :
(2280) : warning 213: tag mismatch
(2283) : warning 213: tag mismatch
Код:
public OnPlayerConnect(playerid) { //Textdraws Textdraw7[playerid] = CreatePlayerTextDraw(playerid, 148.989746, 359.916717, "____"); PlayerTextDrawLetterSize(playerid, Textdraw7[playerid], 0.449999, 1.600000); PlayerTextDrawAlignment(playerid, Textdraw7[playerid], 1); PlayerTextDrawColor(playerid, Textdraw7[playerid], -1); PlayerTextDrawSetShadow(playerid, Textdraw7[playerid], 0); PlayerTextDrawSetOutline(playerid, Textdraw7[playerid], 1); PlayerTextDrawBackgroundColor(playerid, Textdraw7[playerid], 51); PlayerTextDrawFont(playerid, Textdraw7[playerid], 3); PlayerTextDrawSetProportional(playerid, Textdraw7[playerid], 1); //Other Codes Here
Код:
Textstats(playerid) { TextDrawShowForPlayer(playerid, Textdraw7[playerid]); //Line 2280 new string[100]; format(string, sizeof(string), "~b~Score: ~w~%d\n~g~Money: ~w~%d", GetPlayerScore(playerid), GetPlayerMoney(playerid)); TextDrawSetString(Textdraw7[playerid], string); //Line 2283 }
(2280) : warning 213: tag mismatch
(2283) : warning 213: tag mismatch