10.12.2016, 22:48
Estou me irritando com esse erro, nгo sei mais o que fazer, por que esse erro persiste em mostrar? Falta de conhecimento.
Код:
C:\Users\User\Desktop\San Andreas Multiplayer\gamemode RP\gamemodes\gamemode2.pwn(284) : error 047: array sizes do not match, or destination array is too small C:\Users\User\Desktop\San Andreas Multiplayer\gamemode RP\gamemodes\gamemode2.pwn(286) : error 047: array sizes do not match, or destination array is too small C:\Users\User\Desktop\San Andreas Multiplayer\gamemode RP\gamemodes\gamemode2.pwn(287) : error 047: array sizes do not match, or destination array is too small C:\Users\User\Desktop\San Andreas Multiplayer\gamemode RP\gamemodes\gamemode2.pwn(288) : error 047: array sizes do not match, or destination array is too small C:\Users\User\Desktop\San Andreas Multiplayer\gamemode RP\gamemodes\gamemode2.pwn(289) : error 047: array sizes do not match, or destination array is too small C:\Users\User\Desktop\San Andreas Multiplayer\gamemode RP\gamemodes\gamemode2.pwn(294) : error 047: array sizes do not match, or destination array is too small
PHP код:
stock SpawnPersonagem(playerid, id)
{
new
nome[MAX_PLAYERS],
arquivo[74],
arquivo2[74];
for(new i = 0; i < 9; i++) PlayerTextDrawHide(playerid, pTextDraw[i]);
TextDrawHideForPlayer(playerid, TextDrawWorldReality);
TextDrawHideForPlayer(playerid, TextdrawRoleplay);
if(id == 1) SetPlayerName(playerid, Account[playerid][pPersonagem1]);
if(id == 2) SetPlayerName(playerid, Account[playerid][pPersonagem2]);
if(id == 3) SetPlayerName(playerid, Account[playerid][pPersonagem3]);
CancelSelectTextDraw(playerid);
SetPlayerColor(playerid, -1);
SpawnPlayer(playerid);
//Conta de Usuбrio
format(arquivo, sizeof(arquivo), "/Contas de Usuбrios/%s.ini", PlayerData[playerid][pConta]);
Account[playerid][pSenha] = DOF2_GetString(arquivo, "Senha"); //Error 284
Account[playerid][pAdmin] = DOF2_GetInt(arquivo, "Admin");
Account[playerid][pPersonagem1] = DOF2_GetString(arquivo, "Personagem1"); //Error 286
Account[playerid][pPersonagem2] = DOF2_GetString(arquivo, "Personagem2"); //Error 287
Account[playerid][pPersonagem3] = DOF2_GetString(arquivo, "Personagem3"); //Error 288
Account[playerid][pEmail] = DOF2_GetString(arquivo, "Email"); //Error 289
//Conta de Personagem
GetPlayerName(playerid, nome, sizeof(nome));
format(arquivo2, sizeof(arquivo2), "/Personagens/%s.ini", nome);
PlayerData[playerid][pConta] = DOF2_GetString(arquivo2, "Conta"); //Error 294
PlayerData[playerid][pNivel] = DOF2_GetInt(arquivo2, "Nivel");
PlayerData[playerid][pTutorial] = DOF2_GetInt(arquivo2, "Tutorial");
return 1;
}