How to create unpacked strings?
#1

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?
Reply


Messages In This Thread
How to create unpacked strings? - by Angeleno - 08.09.2013, 10:16

Forum Jump:


Users browsing this thread: 1 Guest(s)