Laden.
FirmenInfo[i][Besitzer] = mysql_GetString("firmen","Besitzer",i,FirmenInfo);
Speichern
mysql_SetString("firmen","Besitzer",i,FirmenInfo,FirmenInfo[i][Besitzer]);
dann so??
Edit:
So gibts keinerlei Warnings
stock LoadFirma()
{
for(new i;i<MAX_FIRMEN;i++)
{
FirmenInfo[i][fID] = mysql_SetInt("firmen","id",i,FirmenInfo);
FirmenInfo[i][fBesitzer] = mysql_SetString("firmen","Besitzer",i,FirmenInfo);
FirmenInfo[i][fEntrancex] = mysql_SetFloat("firmen","EingangX",i,FirmenInfo);
FirmenInfo[i][fEntrancey] = mysql_SetFloat("firmen","EingangY",i,FirmenInfo);
FirmenInfo[i][fEntrancez] = mysql_SetFloat("firmen","EingangZ",i,FirmenInfo);
FirmenInfo[i][fExitx] = mysql_SetFloat("firmen","AusgangX",i,FirmenInfo);
FirmenInfo[i][fExity] = mysql_SetFloat("firmen","AusgangY",i,FirmenInfo);
FirmenInfo[i][fExitz] = mysql_SetFloat("firmen","AusgangZ",i,FirmenInfo);
FirmenInfo[i][fInt] = mysql_SetInt("firmen","Interrior",i,FirmenInfo);
FirmenInfo[i][fArt] = mysql_SetInt("firmen","Art",i,FirmenInfo);
FirmenInfo[i][fBank] = mysql_SetInt("firmen","Bank",i,FirmenInfo);
FirmenInfo[i][fOpen] = mysql_SetInt("firmen","Offen",i,FirmenInfo);
}
return 1;
}
stock SaveFirma()
{
for(new i;i<MAX_FIRMEN;i++)
{
mysql_SetInt("firmen","id",i,FirmenInfo,FirmenInfo[i][fID]);
mysql_SetString("firmen","Besitzer",i,FirmenInfo,FirmenInfo[i][fBesitzer]);
mysql_SetFloat("firmen","EingangX",i,FirmenInfo,FirmenInfo[i][fEntrancex]);
mysql_SetFloat("firmen","EingangY",i,FirmenInfo,FirmenInfo[i][fEntrancey]);
mysql_SetFloat("firmen","EingangZ",i,FirmenInfo,FirmenInfo[i][fEntrancez]);
mysql_SetFloat("firmen","AusgangX",i,FirmenInfo,FirmenInfo[i][fExitx]);
mysql_SetFloat("firmen","AusgangY",i,FirmenInfo,FirmenInfo[i][fExity]);
mysql_SetFloat("firmen","AusgangZ",i,FirmenInfo,FirmenInfo[i][fExitz]);
mysql_SetInt("firmen","Interrior",i,FirmenInfo,FirmenInfo[i][fInt]);
mysql_SetInt("firmen","Art",i,FirmenInfo,FirmenInfo[i][fArt]);
mysql_SetInt("firmen","Bank",i,FirmenInfo,FirmenInfo[i][fBank]);
mysql_SetInt("firmen","Offen",i,FirmenInfo,FirmenInfo[i][fOpen]);
}
return 1;
}
aber wenn ich dann
for(new i=0;i<MAX_FIRMEN;i++)
{
LoadFirma(i);
}
unter OnGameModeInit eingebe, kommen folgende Warnings.
C:\Users\Freggel\Desktop\Samp Server\gamemodes\Roleplay.pwn(380) : warning 202: number of arguments does not match definition //Zeile unter OnGameModeInit Load Firma
C:\Users\Freggel\Desktop\Samp Server\gamemodes\Roleplay.pwn(778) : error 048: array dimensions do not match // geht ab hier los unter stock LoadFirma FirmenInfo[i][fID] = mysql_SetInt("firmen","id",i,FirmenInfo);
C:\Users\Freggel\Desktop\Samp Server\gamemodes\Roleplay.pwn(779) : error 035: argument type mismatch (argument 3)
C:\Users\Freggel\Desktop\Samp Server\gamemodes\Roleplay.pwn(780) : error 048: array dimensions do not match
C:\Users\Freggel\Desktop\Samp Server\gamemodes\Roleplay.pwn(781) : error 048: array dimensions do not match
C:\Users\Freggel\Desktop\Samp Server\gamemodes\Roleplay.pwn(782) : error 048: array dimensions do not match
C:\Users\Freggel\Desktop\Samp Server\gamemodes\Roleplay.pwn(783) : error 048: array dimensions do not match
C:\Users\Freggel\Desktop\Samp Server\gamemodes\Roleplay.pwn(784) : error 048: array dimensions do not match
C:\Users\Freggel\Desktop\Samp Server\gamemodes\Roleplay.pwn(785) : error 048: array dimensions do not match
C:\Users\Freggel\Desktop\Samp Server\gamemodes\Roleplay.pwn(786) : error 048: array dimensions do not match
C:\Users\Freggel\Desktop\Samp Server\gamemodes\Roleplay.pwn(787) : error 048: array dimensions do not match
C:\Users\Freggel\Desktop\Samp Server\gamemodes\Roleplay.pwn(788) : error 048: array dimensions do not match
C:\Users\Freggel\Desktop\Samp Server\gamemodes\Roleplay.pwn(789) : error 048: array dimensions do not match