Textdraw bug
#1

Fixed
Reply
#2

if I am not wrong its your letter / words font size height so you may try increasing this function values:
PHP код:
TextDrawLetterSize(Textdraw70.2861490.690432); 
You may try this:
PHP код:
TextDrawLetterSize(Textdraw70.2861490.850432); 
Reply
#3

Quote:
Originally Posted by jlalt
Посмотреть сообщение
if I am not wrong its your letter / words font size height so you may try increasing this function values:
PHP код:
TextDrawLetterSize(Textdraw70.2861490.690432); 
You may try this:
PHP код:
TextDrawLetterSize(Textdraw70.2861490.850432); 
Thanks now i have onther problem

PHP код:
    Textdraw8 TextDrawCreate(0.000013424.853454"Welcome");
TextDrawLetterSize(Textdraw80.2861490.690432);
TextDrawTextSize(Textdraw8659.0000000.000000);
TextDrawAlignment(Textdraw81);
TextDrawColor(Textdraw8, -1);
TextDrawUseBox(Textdraw81);
TextDrawBoxColor(Textdraw82441635);
TextDrawSetShadow(Textdraw81);
TextDrawSetOutline(Textdraw80);
TextDrawBackgroundColor(Textdraw8255);
TextDrawFont(Textdraw82);
TextDrawSetProportional(Textdraw81);
TextDrawSetShadow(Textdraw81);
Textdraw7 TextDrawCreate(2.999974433.329394"~p~Level:~y~ 10~p~ Cookies:~y~ 99999999999~p~ Cakes:~y~ 99999999999~p~ Icecreams:~y~ 99999999999~p~ Kills: ~y~99999999999~n~~p~Deaths: ~y~99999999999");
TextDrawLetterSize(Textdraw70.2861490.850432);
TextDrawTextSize(Textdraw7659.0000000.000000);
TextDrawAlignment(Textdraw71);
TextDrawColor(Textdraw7, -1);
TextDrawUseBox(Textdraw71);
TextDrawBoxColor(Textdraw72441635);
TextDrawSetShadow(Textdraw71);
TextDrawSetOutline(Textdraw70);
TextDrawBackgroundColor(Textdraw7255);
TextDrawFont(Textdraw72);
TextDrawSetProportional(Textdraw71);
TextDrawSetShadow(Textdraw71); 
The 2 textdraws colours is not like each other?
Reply
#4

also:
PHP код:
Textdraw7[playerid] = PlayerTextDrawCreate(2.999974433.329394"~p~Level:~y~ 10~p~ Cookies:~y~ 99999999999~p~ Cakes:~y~ 99999999999~p~ Icecreams:~y~ 99999999999~p~ Kills: ~y~99999999999~n~~p~Deaths: ~y~99999999999"); 
gives error:

Код:
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2209) : error 028: invalid subscript (not an array or too many subscripts): "Textdraw7"
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2209) : warning 215: expression has no effect
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2209) : error 001: expected token: ";", but found "]"
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2209) : error 029: invalid expression, assumed zero
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2209) : fatal error 107: too many error messages on one line

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


4 Errors.
Reply
#5

Quote:
Originally Posted by Loinal
Посмотреть сообщение
also:
PHP код:
Textdraw7[playerid] = PlayerTextDrawCreate(2.999974433.329394"~p~Level:~y~ 10~p~ Cookies:~y~ 99999999999~p~ Cakes:~y~ 99999999999~p~ Icecreams:~y~ 99999999999~p~ Kills: ~y~99999999999~n~~p~Deaths: ~y~99999999999"); 
gives error:

Код:
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2209) : error 028: invalid subscript (not an array or too many subscripts): "Textdraw7"
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2209) : warning 215: expression has no effect
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2209) : error 001: expected token: ";", but found "]"
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2209) : error 029: invalid expression, assumed zero
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2209) : fatal error 107: too many error messages on one line

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


4 Errors.
you may try changing
PHP код:
PlayerTextDrawCreate
with
PHP код:
CreatePlayerTextDraw(playerid
also about the color, you're using custom color in your text string:
Код:
~p~Level:~y~ 10
this ~p~ and ~y~ if I am not wrong telling script to make text color as pruple and yellow... [ textdraw default color will be changed... ]
Reply
#6

Also re-edit your "Textdraw7" and align it to,2. because different values may cast the textdraw to be all about the place.
Reply
#7

Quote:
Originally Posted by jlalt
Посмотреть сообщение
you may try changing
PHP код:
PlayerTextDrawCreate
with
PHP код:
CreatePlayerTextDraw(playerid
also about the color, you're using custom color in your text string:
Код:
~p~Level:~y~ 10
this ~p~ and ~y~ if I am not wrong telling script to make text color as pruple and yellow... [ textdraw default color will be changed... ]
1-
PHP код:
D:\samp folder\(XteMeXxMs\gamemodes\xMs.pwn(2209) : error 028invalid subscript (not an array or too many subscripts): "Textdraw7"
D:\samp folder\(XteMeXxMs\gamemodes\xMs.pwn(2209) : warning 215expression has no effect
D
:\samp folder\(XteMeXxMs\gamemodes\xMs.pwn(2209) : error 001expected token";"but found "]"
D:\samp folder\(XteMeXxMs\gamemodes\xMs.pwn(2209) : error 029invalid expressionassumed zero
D
:\samp folder\(XteMeXxMs\gamemodes\xMs.pwn(2209) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

errors in line

PHP код:
PlayerText:Textdraw7;
Textdraw7[playerid] = CreatePlayerTextDraw(playerid,2.999974433.329394"~p~Level:~y~ 10~p~ Cookies:~y~ 99999999999~p~ Cakes:~y~ 99999999999~p~ Icecreams:~y~ 99999999999~p~ Kills: ~y~99999999999~n~~p~Deaths: ~y~99999999999"); 
2- About the colours / Iam speaking about the box colours
Reply
#8

Quote:
Originally Posted by Loinal
Посмотреть сообщение
1-
PHP код:
D:\samp folder\(XteMeXxMs\gamemodes\xMs.pwn(2209) : error 028invalid subscript (not an array or too many subscripts): "Textdraw7"
D:\samp folder\(XteMeXxMs\gamemodes\xMs.pwn(2209) : warning 215expression has no effect
D
:\samp folder\(XteMeXxMs\gamemodes\xMs.pwn(2209) : error 001expected token";"but found "]"
D:\samp folder\(XteMeXxMs\gamemodes\xMs.pwn(2209) : error 029invalid expressionassumed zero
D
:\samp folder\(XteMeXxMs\gamemodes\xMs.pwn(2209) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

errors in line

PHP код:
PlayerText:Textdraw7;
Textdraw7[playerid] = CreatePlayerTextDraw(playerid,2.999974433.329394"~p~Level:~y~ 10~p~ Cookies:~y~ 99999999999~p~ Cakes:~y~ 99999999999~p~ Icecreams:~y~ 99999999999~p~ Kills: ~y~99999999999~n~~p~Deaths: ~y~99999999999"); 
2- About the colours / Iam speaking about the box colours
you're trying to use a var like an array...

PHP код:
PlayerText:Textdraw7;
Textdraw7 CreatePlayerTextDraw(playerid,2.999974433.329394"~p~Level:~y~ 10~p~ Cookies:~y~ 99999999999~p~ Cakes:~y~ 99999999999~p~ Icecreams:~y~ 99999999999~p~ Kills: ~y~99999999999~n~~p~Deaths: ~y~99999999999"); 
or:

PHP код:
PlayerText:Textdraw7[MAX_PLAYERS];
Textdraw7[playerid] = CreatePlayerTextDraw(playerid,2.999974433.329394"~p~Level:~y~ 10~p~ Cookies:~y~ 99999999999~p~ Cakes:~y~ 99999999999~p~ Icecreams:~y~ 99999999999~p~ Kills: ~y~99999999999~n~~p~Deaths: ~y~99999999999"); 
Reply
#9

Quote:
Originally Posted by jlalt
Посмотреть сообщение
you're trying to use a var like an array...

PHP код:
PlayerText:Textdraw7;
Textdraw7 CreatePlayerTextDraw(playerid,2.999974433.329394"~p~Level:~y~ 10~p~ Cookies:~y~ 99999999999~p~ Cakes:~y~ 99999999999~p~ Icecreams:~y~ 99999999999~p~ Kills: ~y~99999999999~n~~p~Deaths: ~y~99999999999"); 
or:

PHP код:
PlayerText:Textdraw7[MAX_PLAYERS];
Textdraw7[playerid] = CreatePlayerTextDraw(playerid,2.999974433.329394"~p~Level:~y~ 10~p~ Cookies:~y~ 99999999999~p~ Cakes:~y~ 99999999999~p~ Icecreams:~y~ 99999999999~p~ Kills: ~y~99999999999~n~~p~Deaths: ~y~99999999999"); 
Ok, Thanks onther warnings and 1 error:

PHP код:
PlayerTextDrawLetterSize(playerid0.2861490.850432);
PlayerTextDrawTextSize(playerid659.0000000.000000);
PlayerTextDrawAlignment(playerid1);
PlayerTextDrawColor(playerid, -1);
PlayerTextDrawUseBox(playerid1);
PlayerTextDrawBoxColor(playerid2441635);
PlayerTextDrawSetShadow(playerid1);
PlayerTextDrawSetOutline(playerid0);
PlayerTextDrawBackgroundColor(playerid255);
PlayerTextDrawFont(playerid2);
PlayerTextDrawSetProportional(playerid1);
PlayerTextDrawSetShadow(playerid1); 
Код:
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2210) : warning 213: tag mismatch
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2210) : warning 202: number of arguments does not match definition
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2211) : warning 213: tag mismatch
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2211) : warning 202: number of arguments does not match definition
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2212) : warning 213: tag mismatch
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2212) : warning 202: number of arguments does not match definition
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2213) : warning 213: tag mismatch
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2213) : warning 202: number of arguments does not match definition
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2214) : warning 213: tag mismatch
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2214) : warning 202: number of arguments does not match definition
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2215) : warning 213: tag mismatch
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2215) : warning 202: number of arguments does not match definition
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2216) : warning 213: tag mismatch
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2216) : warning 202: number of arguments does not match definition
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2217) : warning 213: tag mismatch
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2217) : warning 202: number of arguments does not match definition
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2218) : warning 213: tag mismatch
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2218) : warning 202: number of arguments does not match definition
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2219) : warning 213: tag mismatch
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2219) : warning 202: number of arguments does not match definition
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2220) : warning 213: tag mismatch
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2220) : warning 202: number of arguments does not match definition
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2221) : warning 213: tag mismatch
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2221) : warning 202: number of arguments does not match definition
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2421) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#10

This is not working

Код:
    TextDrawSetString(Textdraw7[playerid], string);
    TextDrawShowForPlayer(playerid, Textdraw7[playerid]);
Код:
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2429) : warning 213: tag mismatch
D:\samp folder\(XteMeX) xMs\gamemodes\xMs.pwn(2430) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:           9020 bytes
Code size:           405440 bytes
Data size:          8275384 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 8706228 bytes

2 Warnings.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)