Question regarding strings inside arrays
#1

Alright so I havent scripted for in pawn for a loooong ass time, like six months or something. Now I forgot some of the things, trying to kick back and re-learn most of it.

Now I've stumbled across a weird issue I cannot seem to resolve and that is packing stuff into an array.

pawn Код:
#define MAX_LANGUAGES 2
enum PLAYER_INFO {
    Language[MAX_LANGUAGES],
};
new pInfo[MAX_PLAYERS][PLAYER_INFO];
   
format(pInfo[playerid][Language][0], 10, "English");
format(pInfo[playerid][Language][1], 10, "Russian");

for(new i=0; i < MAX_LANGUAGES; i++) {
    printf("%i %s",i,pInfo[playerid][Language][i]);
}

And the output seems to be
Код:
0 ERussian
1 Russian
Why isnt it pushing English into 0?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)