Redsan
19.08.2017, 22:07
Появилась необходимость преобразования переменной типа PlayerText в Integer.
Написал функцию:
PlayerTextoToInt(PlayerText:playertext)
{
new playertext_int;
#emit LOAD.S.pri playertext
#emit STOR.S.pri playertext_int
return playertext_int;
}
Можно ли её реализовать лучше?
Написал функцию:
PlayerTextoToInt(PlayerText:playertext)
{
new playertext_int;
#emit LOAD.S.pri playertext
#emit STOR.S.pri playertext_int
return playertext_int;
}
Можно ли её реализовать лучше?