03.02.2013, 16:30
So I've made a little dialog, in order to create a dynamic organization IG.
My code.
The problem:
Error:
How can I fix this error? (Don't mind the warning, it has nothing to do with it.)
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");
}
}
pawn Код:
FamilyID[playerid] = inputtext;
Код:
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.