error 006: must be assigned to an array
#1

pawn Код:
ShowPlayerDialog(playerid, d_account_origin, DIALOG_STYLE_INPUT, "Origin Selection", "Where were your character born?", "Continue", "");


case d_account_origin:
            {
                CleanPlayerScreen(playerid);
                new string[150];
                format(string, sizeof(string), "SERVER:"WHITE_EMBED" Okay, so you are from %s", inputtext);
                SendClientMessage(playerid, COLOR_RED, string);
                // LINE 573 playerInfo[playerid][pOrigin] = inputtext;
                ShowPlayerDialog(playerid, d_account_age, DIALOG_STYLE_INPUT, "Age Selection", "How old is your character?", "Continue", "");
            }

Quote:

Errors:
gm.pwn(573) : error 006: must be assigned to an array

Reply
#2

format(PlayerInfo[playerid][pOrigin], 50, "%s", inputtext);
Reply
#3

So, the full code please?
Reply
#4

Quote:
Originally Posted by EmilLykke
Посмотреть сообщение
So, the full code please?
pawn Код:
ShowPlayerDialog(playerid, d_account_origin, DIALOG_STYLE_INPUT, "Origin Selection", "Where were your character born?", "Continue", "");


case d_account_origin:
            {
                CleanPlayerScreen(playerid);
                new string[150];
                format(string, sizeof(string), "SERVER:"WHITE_EMBED" Okay, so you are from %s", inputtext);
                SendClientMessage(playerid, COLOR_RED, string);
               format(playerInfo[playerid][pOrigin], 30, "%s", inputtext);
                ShowPlayerDialog(playerid, d_account_age, DIALOG_STYLE_INPUT, "Age Selection", "How old is your character?", "Continue", "");
            }
How long is your pOrigin in enum?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)