Assinging inputtext to a variable. [URGENT]
#1

So I've made a little dialog, in order to create a dynamic organization IG.

My code.

pawn Код:
new FamilyID[MAX_PLAYERS][256];
pawn Код:
if(dialogid == 31)
        {
            if(response)
            {
                new file[32], str[32];
                format(file,sizeof(file),"/Orgs/org%d.ini", inputtext);
                if(!fexist(file))
                {
                    dini_Create(file);
                    FamilyID[playerid] = inputtext;
                    format(str,sizeof(str),"Family ID set to %d.", inputtext);
                    SendClientMessage(playerid, COLOR_WHITE, str);
                    ShowPlayerDialog(playerid, 30, DIALOG_STYLE_LIST, "Family Creation", "ID\nName\nRank 1\nRank 2\nRank 3\nRank 4\nRank 5\nRank6","Choose","Exit");
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "This Family ID is already in use.");
                    ShowPlayerDialog(playerid, 31, DIALOG_STYLE_INPUT, "Family ID","Write a Family ID that is available below.", "Enter", "Quit");
                }
            }
            else
            {
                ShowPlayerDialog(playerid, 30, DIALOG_STYLE_LIST, "Family Creation", "ID\nName\nRank 1\nRank 2\nRank 3\nRank 4\nRank 5\nRank6","Choose","Exit");
            }
        }
The problem:

pawn Код:
FamilyID[playerid] = inputtext;
Error:

Код:
C:\Program Files\GTA San Andreas (2)\server\Basic Roleplay\gamemodes\hrp.pwn(1970) : error 047: array sizes do not match, or destination array is too small
C:\Program Files\GTA San Andreas (2)\server\Basic Roleplay\gamemodes\hrp.pwn(5280) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
How can I fix this error? (Don't mind the warning, it has nothing to do with it.)
Reply


Messages In This Thread
Assinging inputtext to a variable. [URGENT] - by Da_Noob - 03.02.2013, 16:30
Re: Assinging inputtext to a variable. [URGENT] - by MattSlater - 03.02.2013, 16:42
Re: Assinging inputtext to a variable. [URGENT] - by u3ber - 03.02.2013, 16:42
Re: Assinging inputtext to a variable. [URGENT] - by Da_Noob - 03.02.2013, 16:45
Re: Assinging inputtext to a variable. [URGENT] - by tyler12 - 03.02.2013, 16:50
Re: Assinging inputtext to a variable. [URGENT] - by Da_Noob - 03.02.2013, 16:56
Re: Assinging inputtext to a variable. [URGENT] - by SKAzini - 03.02.2013, 17:03
Re: Assinging inputtext to a variable. [URGENT] - by Da_Noob - 03.02.2013, 17:21

Forum Jump:


Users browsing this thread: 1 Guest(s)