Hey,
ich bekomme den Error nicht weg, ich arbeite an einem Heirat System
Code
C:\Users\Narushi\Desktop\Scripting\PAWN\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(3876) : error 047: array sizes do not match, or destination array is too smallPawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase1 Error.
Es liegt am pPartner!
PlayerInfo:
enum SpielerDaten
{
pName[MAX_PLAYER_NAME],pGeld,pLevel,
pLeader,pMember,pRank, pPartner[MAX_PLAYER_NAME], //HIER
pAge,pAdmin,pSkin,pJob,pNutzung,pBanned,
pAutoschein,pMotorradschein,pLKWschein,
pBootschein,pWaffenschein,pAngelschein,pPackete,
pTimeBanned,pWantedLevel,pGangJail,pSaveMats,pMats,
pDrugs, pSaveDrugs, pRespektPunkte,pPayDayTime, pSex,
pKills, pDeaths, pCrimes, pPlayMinutes, pJails, pWarns,
pPlayTime, pPayDayLohn, pBusSkill, pBusPt, pContract,
pHandyNr, pAkku, pHandy, bool:HandyOn, pDetSkill
}
new PlayerInfo[MAX_PLAYERS][SpielerDaten];
{
pName[MAX_PLAYER_NAME],pGeld,pLevel,
pLeader,pMember,pRank, pPartner[MAX_PLAYER_NAME], //HIER
pAge,pAdmin,pSkin,pJob,pNutzung,pBanned,
pAutoschein,pMotorradschein,pLKWschein,
pBootschein,pWaffenschein,pAngelschein,pPackete,
pTimeBanned,pWantedLevel,pGangJail,pSaveMats,pMats,
pDrugs, pSaveDrugs, pRespektPunkte,pPayDayTime, pSex,
pKills, pDeaths, pCrimes, pPlayMinutes, pJails, pWarns,
pPlayTime, pPayDayLohn, pBusSkill, pBusPt, pContract,
pHandyNr, pAkku, pHandy, bool:HandyOn, pDetSkill
}
new PlayerInfo[MAX_PLAYERS][SpielerDaten];
SavePlayer:
stock SavePlayer(playerid)
{
if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
{
if(GetPVarInt(playerid,"Eingeloggt") == 1)
{
GetPlayerName(playerid, PlayerInfo[playerid][pName], MAX_PLAYER_NAME);
mysql_SetString("accounts", "Partner",PlayerInfo[playerid][pPartner],"Name",PlayerInfo[playerid][pName]);
}
}
return 1;
}
{
if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
{
if(GetPVarInt(playerid,"Eingeloggt") == 1)
{
GetPlayerName(playerid, PlayerInfo[playerid][pName], MAX_PLAYER_NAME);
mysql_SetString("accounts", "Partner",PlayerInfo[playerid][pPartner],"Name",PlayerInfo[playerid][pName]);
}
}
return 1;
}
LoadPlayer ( + Errorzeile )
stock LoadPlayer(playerid)
{
if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
{
GetPlayerName(playerid, PlayerInfo[playerid][pName], MAX_PLAYER_NAME);
PlayerInfo[playerid][pPartner] = mysql_GetString("accounts","Partner","Name",PlayerInfo[playerid][pName]); //Error Zeile!
if(PlayerInfo[playerid][pBanned] == 1)
{
SendClientMessage(playerid,Rot,"Du bist vom Server gebannt.");
Kick(playerid);
}
if(PlayerInfo[playerid][pTimeBanned] >= 1)
{
new STR[128];
new wert;
format(STR,sizeof(STR),"[Name:[%s]] [Timeban noch:[%i]]",GetName(playerid),wert);
ShowPlayerDialog(playerid,DIALOG_TIMEBAN,DIALOG_STYLE_MSGBOX,"TimeBan",STR," "," ");
Kick(playerid);
}
}
return 1;
}
{
if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
{
GetPlayerName(playerid, PlayerInfo[playerid][pName], MAX_PLAYER_NAME);
PlayerInfo[playerid][pPartner] = mysql_GetString("accounts","Partner","Name",PlayerInfo[playerid][pName]); //Error Zeile!
if(PlayerInfo[playerid][pBanned] == 1)
{
SendClientMessage(playerid,Rot,"Du bist vom Server gebannt.");
Kick(playerid);
}
if(PlayerInfo[playerid][pTimeBanned] >= 1)
{
new STR[128];
new wert;
format(STR,sizeof(STR),"[Name:[%s]] [Timeban noch:[%i]]",GetName(playerid),wert);
ShowPlayerDialog(playerid,DIALOG_TIMEBAN,DIALOG_STYLE_MSGBOX,"TimeBan",STR," "," ");
Kick(playerid);
}
}
return 1;
}