[HELP] Textdraw updating & samp-server crash on login [HELP]
#1

hey, well iv'e got a stats bar wich shows ur deaths and kills ECT but wen i make it show under OnPlayerConnect it makes a new WHITE textdraw ?? and wen i take it away from OnPlayerConnect, it says that samp-server.exe has encountered a problem and needs to close ...

but id'e like the textdraw to show ONLY if your logged in, ofcourse, if i place my Textdraws under dcmd_login, i connect to server, and wen i /login samp-server.exe crashes and same goes with OnPlayerSpawn o.O can someone help me? here's my code : http://pastebin.com/m27e7378d

someone please help me this is just getting frustrating now -_- iv'e read ALOT of topics on how to update ect..
but it updates EVERYTHING WORKS FINE exept, i dont want it under OnPlayerConnect, anywhare else i put it = CRASH
so if you can, place it whare it needs to be JUST so it shows wen u login, heres some pics of what i mean with the new textdraw it creates :



THAT SHUD NOT BE THARE ( and wen i die the real textdraw that SHOULD show shows.. but that stupid white one stays? someone help me.. dont ask my to search iv'e searched for 3days! well, thanks in advanced.

EDIT: also, wen i kill someone i get the person i killed stats.

EDIT: crashinfo.txd - Exception At Address: 0x00479BE4



Registers:

EAX: 0x00000000 EBX: 0x00000100 ECX: 0x00000040 EDX: 0x7EFEFEFF

ESI: 0x00000000 EDI: 0x00C9AB28 EBP: 0x00000000 ESP: 0x0013FC48

EFLAGS: 0x00010212



Stack:

Reply
#2

you should create them under OnFilterScriptInit()

and on login use TextDrawSetString(Text:text,string[]);

hope it help ya
cheerz
Reply
#3

thanks for the fast reply but again, = samp-server.exe has encountered a problem and needs to close FFFFFFSSSSSSSS WTFS UP WITH THIS STUPID THING!!! please some help me !
Reply
#4

http://pastebin.com/m3e19b633
Reply
#5

not sure if this is your problem, but I've encountered crashes when I tried to show empty textdraws, make sure yours contains text before showing it
Reply
#6

Quote:
Originally Posted by Rav
not sure if this is your problem, but I've encountered crashes when I tried to show empty textdraws, make sure yours contains text before showing it
Exactly that was his problem, he tried to create empty textdraws at /login
Reply
#7

OMFG thankyou so fucking much!!!!!!!!!!!!!!!!!!!!!!!!!! i love u ( not a gay way) !!!!@!@!@!@!@ off to test if this works
i dont just love u, id'e thing ur uber haxed x50!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)