SA-MP Forums Archive
How to create unpacked strings? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to create unpacked strings? (/showthread.php?tid=462731)



How to create unpacked strings? - Angeleno - 08.09.2013

Hey guys,

I want to use the ★ character in a string to display it on in-game license plates. I have tried inserting it into the string by typing \x2605 (found that way in the pawn-language.pdf), but it doesn't work in-game. I figured out that I should use an unpacked string for Unicode characters like that, but the problem is that I don't know how to create one. The document said the syntax was new ustring[5] = ’’test’’ (so you have to use double ’ instead of "), but the compiler won't accept this, giving me the following message:

Код:
C:\Users\Tomi\Documents\SA-MP Server\gamemodes\roleplay.pwn(54) : error 029: invalid expression, assumed zero
C:\Users\Tomi\Documents\SA-MP Server\gamemodes\roleplay.pwn(54) : error 029: invalid expression, assumed zero
C:\Users\Tomi\Documents\SA-MP Server\gamemodes\roleplay.pwn(54) : error 017: undefined symbol "test"
C:\Users\Tomi\Documents\SA-MP Server\gamemodes\roleplay.pwn(54) : fatal error 107: too many error messages on one line
So, long story short, how can I create unpacked strings to use Unicode symbols?