01.05.2013, 15:12
Useful for getting the text behind an address
pawn Код:
stock GetTextFromAddress(address) {
#emit load.s.pri address
#emit stor.s.pri 16
#emit retn
new
tmp[1]
;
return tmp;
}
pawn Код:
new
text[] = "Hello World",
addr
;
#emit addr.pri text
#emit stor.s.pri addr
print(GetTextFromAddress(addr)); // "Hello World"