Enum with two dimensional string
#8

Enums just cant contain 2D arrays. Thats a limitation of pawn. Possibly YSI got some workaround for that though, give it a look.

Quote:
Originally Posted by ax1
Посмотреть сообщение
anyone know where the problem is? GroupInfo[21][MemberName][1] should be " ", but instead it's "essage"
Thats because MemberName is just a regular string in your code, so [MemberName][1] refers to the substring of it starting at position 1, thus it skips the 'M'.



hStorage in the #define is the name of an enum element in the example. You need to change it to the name of you pseudo-2d-array name: MemberName
Код:
#define MemberName][%1][%2] MemberName][((%1)*hStorage_size2)+(%2)]
Reply


Messages In This Thread
Enum with two dimensional string - by ax1 - 15.10.2017, 10:05
Re: Enum with two dimensional string - by ax1 - 17.10.2017, 12:46
Re: Enum with two dimensional string - by StrikerZ - 17.10.2017, 12:52
Re: Enum with two dimensional string - by ax1 - 17.10.2017, 17:04
Re: Enum with two dimensional string - by ax1 - 18.10.2017, 13:18
Re: Enum with two dimensional string - by StrikerZ - 18.10.2017, 13:49
Re: Enum with two dimensional string - by ax1 - 18.10.2017, 19:53
Re: Enum with two dimensional string - by Mauzen - 18.10.2017, 20:10
Re: Enum with two dimensional string - by ax1 - 19.10.2017, 11:30

Forum Jump:


Users browsing this thread: 1 Guest(s)