textdraw help(Crash report inside too!)
#1

~t~~t~~t~~t~~t~~t~1~t~2~n~~t~3~t~4~t~5~t~6~t~7~t~8 ~t~9~n~~t~10~t~11~t~12~t~13~t~14~t~15~t~16~n~~t~17 ~t~18~t~19~t~20~t~21~t~22~t

is that a unvalid string for a textdraw?

mmm this is a serverlog output btw so it's shortened (mind the missing ~ at the end.)

it must be from 1 to 30. iits a calendar
EDIT:
~t~~t~~t~~t~~t~~t~1~t~2~n~~t~3~t~4~t~5~t~6~t~7~t~8 ~t~9~n~~t~10~t~11~t~12~t~13~t~14~t~15~t~16~n~~t~17 ~t~18~t~19~t~20~t~21~t~2

full string.

omg helping myself here string size too small. lemme check again if it works.

weird.
when i did it with other positions.(it didnt show fully. it went off the screen)
it came up with:
Код:
SA-MP 0.3c
Exception At Address: 0x00719176

Registers:
EAX: 0x00000000	EBX: 0x095E9A00	ECX: 0x0022FAA0	EDX: 0x000000E9
ESI: 0x095E9B46	EDI: 0x095EAFFF	EBP: 0x095E9B28	ESP: 0x0022FA30
EFLAGS: 0x00210297

Stack:
+0000: 0x095E9B25   0x00000000   0x00000000   0x00000000
+0010: 0x00000000   0x00000000   0x00000000   0x00000000
+0020: 0x00000000   0x0071A2C9   0x095E9B46   0x0022FAA0
+0030: 0x00000001   0x0022FA7B   0x41200000   0x4136DB40
+0040: 0x7E3ADEB2   0x095E9AC9   0x00000000   0x43393334
+0050: 0x41200000   0x00000003   0x425F3333   0x00000005
+0060: 0x42924920   0x43393334   0x00000000   0xAAFFFFAA
+0070: 0x00000000   0x00000000   0x00000000   0x00000000
+0080: 0x00000000   0x00000000   0x00000000   0x00000000
+0090: 0x00000000   0x00000000   0x00000000   0x00000000
+00A0: 0x00000000   0x00000000   0x00000000   0x00000000
+00B0: 0x00000000   0x00000000   0x00000000   0x00000000
+00C0: 0x00000000   0x00000000   0x00000000   0x00000000
+00D0: 0x00000000   0x00000000   0x00000000   0x00000000
+00E0: 0x00000000   0x00000000   0x00000000   0x00000000
+00F0: 0x00000000   0x00000000   0x00000000   0x00000000
+0100: 0x00000000   0x00000000   0x00000000   0x00000000
+0110: 0x00000000   0x00000000   0x00000000   0x00000000
+0120: 0x00000000   0x00000000   0x00000000   0x00000000
+0130: 0x00000000   0x00000000   0x00000000   0x00000000
+0140: 0x00000000   0x00000000   0x00000000   0x00000000
+0150: 0x00000000   0x00000000   0x00000000   0x00000000
+0160: 0x00000000   0x00000000   0x00000000   0x00000000
+0170: 0x00000000   0x0071A807   0x00000001   0x41200000
+0180: 0x4136DB40   0x095E9AC9   0x095E9AC9   0x095E96C8
+0190: 0x00000000   0xFFFFFFFF   0xFFFFFFFF   0xFFFFFFFF
+01A0: 0xFFFFFFFF   0x0270BCB5   0x41200000   0x4136DB40
+01B0: 0x095E9AC9   0x095D9128   0x00000015   0x44A00000
+01C0: 0x3ACCCCCD   0x44800000   0x3B124925   0x026C5F28
+01D0: 0x0000001A   0x00000018   0x0270288D   0x0B0A0908
+01E0: 0x00000000   0x00000000   0x412D8106   0x0022FC90
+01F0: 0x00000B7C   0x00000000   0x0022FBD0   0x00000010
+0200: 0xBEC08000   0x4537C000   0x452879FC   0xC4D51604
+0210: 0x00000A88   0x00000000   0x452879FC   0x00000000
+0220: 0x00C7DE28   0x00C7DDF8   0x00000001   0x00000001
+0230: 0x00724D4F   0x00C7DE28   0x00C7DDF8   0x00725921
+0240: 0x44C2F61C   0x447BF5E4   0x412D0008   0x40000000
+0250: 0x00BA873E   0xF4A460FF   0x7E3ADEB2   0x00000001
+0260: 0x02417BD8   0x00000000   0x44C2F61C   0x447BF5E4
+0270: 0x412D0008   0x452879FC   0xC4D51604   0x412D8106

SCM Op: 0x470, lDbg: 0

Game Version: EU 1.0

State Information: Ped Context: 0
help!
Reply
#2

I dont get you?? Im wanting to help so are others, whats the actual problem?
Reply
#3

when i startup sa-mp with this textdraw it just crashes.
i thought up it might have to do with string size.
it shud display all the numbers. with some tabs and returns ~t~ & ~r~

with this code it doesnt crash:
Код:
	xtxd = TextDrawCreate(/*53*/5.0, /*36*/5.0,"does this even work?");
 	//TextDrawUseBox(xtxd, 0);
	//TextDrawLetterSize(xtxd,0.3,1.0);
	//TextDrawTextSize(xtxd,400.0,400.0);
	//TextDrawFont(xtxd, 2);
	//TextDrawSetShadow(xtxd,0);
    //TextDrawSetOutline(xtxd,1);
    //TextDrawBackgroundColor(xtxd,0x000000FF);
    //TextDrawColor(xtxd,0xAAFFFFAA);
    TextDrawShowForAll(xtxd);
ofcourse board messes up indentation


EDIT

when i print out the string i want to have in the TD it ends at number 24. very weird.(this is in server log)

EDIT2:

i now have 6 different line's so i can shorten the line lingth per TD but it still fails.
Reply
#4

SOLVED
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)