SA-MP Forums Archive
[Ajuda] erros com textdraw - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] erros com textdraw (/showthread.php?tid=368201)



erros com textdraw - Lukinhas_Ice - 12.08.2012

consegui sozinho jah @@@@@@@@


Re: erros com textdraw - paulor - 12.08.2012

pawn Код:
new Text: Tkills;
new Text: Rdamage;
new Text: Rkills;
new Text: Tdmg;
Tem que colocar Text: antes do nome da var!


Re: erros com textdraw - Lukinhas_Ice - 12.08.2012

pawn Код:
new Text:Rdamage;
new Text:Tdmg;
new Text:Rkills;
new Text:Tkills;
jб estб


Re: erros com textdraw - paulor - 12.08.2012

pawn Код:
new PlayerText: Tkills;
new PlayerText: Rdamage;
new PlayerText: Rkills;
new PlayerText: Tdmg;

PlayerTextDrawSetString(playerid, Rkills, dmgs);
PlayerTextDrawSetString(playerid, Tkills, dmgs2);
PlayerTextDrawSetString(playerid, Rdamage, dmgs3);
PlayerTextDrawSetString(playerid, Tdmg, dmgs4);
Como vc ta usando PlayerTextDraw entгo й PlayerText: e envйs de TextDrawSetString й PlayerTextDrawSetString.

E um detalhe, se isso for para vбrios Players vai bugar...



Re: erros com textdraw - Lukinhas_Ice - 12.08.2012

deu 28 avisos iguais a esse => warning 213: tag mismatch
e 1 aviso igual a esse => warning 215: expression has no effect

nas linhas modificadas


Re: erros com textdraw - paulor - 12.08.2012

Quote:
Originally Posted by Lukinhas_Ice
Посмотреть сообщение
deu 28 avisos iguais a esse => warning 213: tag mismatch
e 1 aviso igual a esse => warning 215: expression has no effect

nas linhas modificadas
Certeza ? Tente de novo, Pois nгo й para dar erro nenhum!


Re: erros com textdraw - Lukinhas_Ice - 12.08.2012

eu refiz o sistema depois que vocк me respondeu, acabei de fazer novamente e continua os erros


Re: erros com textdraw - paulor - 12.08.2012

pawn Код:
new PlayerText: Tkills;
new PlayerText: Rdamage;
new PlayerText: Rkills;
new PlayerText: Tdmg;
pawn Код:
new dmgs[500];
format(dmgs,128,"~w~Kills ~y~%d",Player[playerid][prScore]);
PlayerTextDrawSetString(playerid, Rkills, dmgs);
pawn Код:
new dmgs2[500];
format(dmgs2,128,"~w~Total Kills ~y~%d",Player[playerid][prScores]);
PlayerTextDrawSetString(playerid, Tkills, dmgs2);
pawn Код:
new dmgs3[500];
format(dmgs3,128,"~w~Damage ~y~%d",gRoundDamage[playerid]);
PlayerTextDrawSetString(playerid, Rdamage, dmgs3);
pawn Код:
new dmgs4[500];
format(dmgs4,128,"~w~Round DMG ~y~%d",gRoundDamage2[playerid]);
PlayerTextDrawSetString(playerid, Tdmg, dmgs4);
pawn Код:
PlayerTextDrawShow(playerid, Rdamage);
pawn Код:
PlayerTextDrawShow(playerid, Tdmg);
pawn Код:
PlayerTextDrawShow(playerid, Rkills);
pawn Код:
PlayerTextDrawShow(playerid, Tkills);
Faзa e nгo darб erro nenhum, tenho certeza absoluta, se der й erro seu...