SA-MP Forums Archive
error 006: must be assigned to an array - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 006: must be assigned to an array (/showthread.php?tid=523746)



error 006: must be assigned to an array - EmilLykke - 03.07.2014

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




Re: error 006: must be assigned to an array - Dziugsas - 03.07.2014

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


Re: error 006: must be assigned to an array - EmilLykke - 03.07.2014

So, the full code please?


Re: error 006: must be assigned to an array - greentarch - 03.07.2014

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?