SA-MP Forums Archive
K-Codes in long strings. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: K-Codes in long strings. (/showthread.php?tid=549794)



K-Codes in long strings. - Pottus - 08.12.2014

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 ?




Re: K-Codes in long strings. - KingHual - 08.12.2014

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

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


Re: K-Codes in long strings. - Pottus - 08.12.2014

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~


Re: K-Codes in long strings. - PT - 08.12.2014

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

but yeah that is strange


Re: K-Codes in long strings. - Pottus - 08.12.2014

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


Re: K-Codes in long strings. - Pottus - 09.12.2014

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


Re: K-Codes in long strings. - iZN - 09.12.2014

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