K-Codes in long strings.
#1

This used to not happen before something changed in one of the new SAMP versions that has caused k-codes to fail in long strings.

From checking out why this happens apparently it happens when ~~ codes are used past the 255 now it was working fine before maybe this is a solution without a problem ?

Reply
#2

https://sampwiki.blast.hk/wiki/TextDrawCreate

"Keyboard key mapping codes (such as ~k~~VEHICLE_ENTER_EXIT~ don't work beyond 255th character. "
Reply
#3

That is what I figured but as I mentioned it was working fine before the update here is what I had.

~w~These keys are used on this server here is your configuration~n~Please make sure all keys are configured correctly~n~~y~Conversation Yes: ~r~~k~~CONVERSATION_YES~~y~ Conversation No: ~r~~k~~CONVERSATION_NO~~y~ Walk Key: ~r~~k~~SNEAK_ABOUT~~y~ Horn: ~r~~k~~GROUP_CONTROL_BWD~~n~~y~Crouch: ~r~~k~~PED_DUCK~~y~ Sub-Mission: ~r~~k~~TOGGLE_SUBMISSIONS~
Reply
#4

that haves 351 characters maybe is that the problem, did you try dispart that?

but yeah that is strange
Reply
#5

It used to work on one of the older 0.3x versions somewhere along the line something changed and started spitting that error.
Reply
#6

Yeah I just shortened it up for now it's pretty bullshit change.
Reply
#7

About this error, there was some client related exploit related to textdraw which was solved with 0.3x-R2 client (pre-release 2).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)