player textdraw bug
#1

Код:
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1160) : error 017: undefined symbol "scoretd1"
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1161) : error 035: argument type mismatch (argument 2)
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1162) : error 035: argument type mismatch (argument 2)
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1163) : error 035: argument type mismatch (argument 2)
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1164) : error 035: argument type mismatch (argument 2)
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1165) : error 035: argument type mismatch (argument 2)
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1166) : error 035: argument type mismatch (argument 2)
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1167) : error 035: argument type mismatch (argument 2)
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1168) : error 035: argument type mismatch (argument 2)
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1170) : error 017: undefined symbol "ktd1"
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1171) : error 035: argument type mismatch (argument 2)
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1172) : error 035: argument type mismatch (argument 2)
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1173) : error 035: argument type mismatch (argument 2)
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1174) : error 035: argument type mismatch (argument 2)
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1175) : error 035: argument type mismatch (argument 2)
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1176) : error 035: argument type mismatch (argument 2)
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1177) : error 035: argument type mismatch (argument 2)
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1178) : error 035: argument type mismatch (argument 2)
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1181) : error 017: undefined symbol "deathstd"
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1182) : error 035: argument type mismatch (argument 2)
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1183) : error 035: argument type mismatch (argument 2)
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1184) : error 035: argument type mismatch (argument 2)
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1185) : error 035: argument type mismatch (argument 2)
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1186) : error 035: argument type mismatch (argument 2)
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1187) : error 035: argument type mismatch (argument 2)
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1188) : error 035: argument type mismatch (argument 2)

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
This is the code
Код:
    new scoretd[20];
    format(scoretd, sizeof(scoretd), "%i", playerData[playerid][playerScore]);
  	new ktd[20];
    format(ktd, sizeof(ktd), "%i", playerData[playerid][playerKills]);
	new dtd[20];
    format(dtd, sizeof(dtd), "%i", playerData[playerid][playerDeaths]);
	scoretd1 = CreatePlayerTextDraw(playerid, 471.000000, 335.000000, scoretd);
	PlayerTextDrawBackgroundColor(playerid, scoretd, 255);
	PlayerTextDrawLetterSize(playerid, scoretd, 0.500000, 1.000000);
	PlayerTextDrawFont(playerid, scoretd, 1);
	PlayerTextDrawColor(playerid, scoretd, -65281);
	PlayerTextDrawSetOutline(playerid, scoretd, 0);
	PlayerTextDrawSetProportional(playerid, scoretd, 1);
	PlayerTextDrawSetShadow(playerid, scoretd, 1);
	PlayerTextDrawSetSelectable(playerid, scoretd, 0);

	ktd1 = CreatePlayerTextDraw(playerid, 530.000000, 335.000000, ktd);
	PlayerTextDrawBackgroundColor(playerid, ktd, 255);
	PlayerTextDrawFont(playerid, ktd, 1);
	PlayerTextDrawLetterSize(playerid, ktd, 0.500000, 1.000000);
	PlayerTextDrawColor(playerid, ktd, -65281);
	PlayerTextDrawSetOutline(playerid, ktd, 0);
	PlayerTextDrawSetProportional(playerid, ktd, 1);
	PlayerTextDrawSetShadow(playerid, ktd, 1);
	PlayerTextDrawSetSelectable(playerid, ktd, 0);


	deathstd = CreatePlayerTextDraw(playerid, 593.000000, 335.000000, dtd);
	PlayerTextDrawBackgroundColor(playerid, dtd, 255);
	PlayerTextDrawFont(playerid, dtd, 1);
	PlayerTextDrawLetterSize(playerid, dtd, 0.500000, 1.000000);
	PlayerTextDrawColor(playerid, dtd, -65281);
	PlayerTextDrawSetOutline(playerid, dtd, 0);
	PlayerTextDrawSetProportional(playerid, dtd, 1);
	PlayerTextDrawSetShadow(playerid, dtd, 1);
	PlayerTextDrawSetSelectable(playerid, dtd, 0);
Any solution?
Reply
#2

you not define the name textdraw

not define

Quote:

scoretd1
ktd1
deathstd

like this.this is the define:

Quote:

new PlayerTextcoretd1;
new PlayerText:ktd1;
new PlayerText:deathstd;

Reply
#3

PHP код:
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1175) : error 035argument type mismatch (argument 2)
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1181) : error 035argument type mismatch (argument 4)
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1181) : error 033: array must be indexed (variable "dtd")
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1182) : error 035argument type mismatch (argument 2)
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1183) : error 035argument type mismatch (argument 2)
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1184) : error 035argument type mismatch (argument 2)
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1185) : error 035argument type mismatch (argument 2)
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1186) : error 035argument type mismatch (argument 2)
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1187) : error 035argument type mismatch (argument 2)
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1188) : error 035argument type mismatch (argument 2)
C:\Users\Mohamed\Desktop\Fixed CZCNR1\New folder\pawno\include\cnr/cnr_textdraws.inc(1189) : error 035argument type mismatch (argument 2
After defineing
Reply
#4

Replace
Код:
new PlayerTextcoretd1;
new PlayerText:ktd1;
new PlayerText:deathstd;
with
Код:
new PlayerText:coretd1[MAX_PLAYERS];
new PlayerText:ktd1[MAX_PLAYERS];
new PlayerText:deathstd[MAX_PLAYERS];
Reply
#5

It's fixed
Thanks all
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)