Hallo
Ich versuche mich an nem Selfmade Haussystem auf MySQL Basis.
Nun habe ich das Enum und die Stocks ( LoadHaus(house) SaveHaus(house) )
Wenn ich es nun so:
stock SaveHaus(house)
{
mysql_SetInt("house", "hName", HausInfo[house][hName]);
mysql_SetInt("house", "hId", HausInfo[house][hId]);
mysql_SetInt("house", "hPreis", HausInfo[house][hPreis]);
mysql_SetInt("house", "hEnterX", HausInfo[house][hEnterX]);
mysql_SetInt("house", "hEnterY", HausInfo[house][hEnterY]);
mysql_SetInt("house", "hEnterZ", HausInfo[house][hEnterZ]);
mysql_SetInt("house", "hBesitzer", HausInfo[house][hBesitzer]);
mysql_SetInt("house", "hMietbar", HausInfo[house][hMietbar]);
mysql_SetInt("house", "hMieter", HausInfo[house][hMieter]);
return 1;
}
stock LoadHaus(house)
{
HausInfo[house][hName] = mysql_GetInt("house", "hName");
HausInfo[house][hId] = mysql_GetInt("house", "hId");
HausInfo[house][hPreis] = mysql_GetInt("house", "hPreis");
HausInfo[house][hEnterX] = mysql_GetInt("house", "hEnterX");
HausInfo[house][hEnterY] = mysql_GetInt("house", "hEnterY");
HausInfo[house][hEnterZ] = mysql_GetInt("house", "hEnterZ");
HausInfo[house][hBesitzer] = mysql_GetInt("house", "hBesitzer");
HausInfo[house][hMietbar] = mysql_GetInt("house", "hMietbar");
HausInfo[house][hMieter] = mysql_GetInt("house", "hMieter");
return 1;
}
/*enum HausDaten
{
hName[64],
hId,
hPreis,
hEnterX,
hEnterY,
hEnterZ,
hBesitzer[64],
hMietbar,
hMieter
};
new HausInfo[MAX_HOUSES][HausDaten];*/
Compile dann kommen keine Errors,
Aber wenn ich dann
for(new i = 0; i < MAX_HOUSES; i++)
{
LoadHaus(i);
}
Unter OnGameModeInit
mache, dann kommen diese Error's
C:\Users\Raphael\Desktop\basic R5\gamemodes\R5.pwn(1994) : warning 202: number of arguments does not match definition
C:\Users\Raphael\Desktop\basic R5\gamemodes\R5.pwn(1994) : warning 202: number of arguments does not match definition
C:\Users\Raphael\Desktop\basic R5\gamemodes\R5.pwn(1995) : warning 202: number of arguments does not match definition
C:\Users\Raphael\Desktop\basic R5\gamemodes\R5.pwn(1995) : warning 202: number of arguments does not match definition
C:\Users\Raphael\Desktop\basic R5\gamemodes\R5.pwn(1996) : warning 202: number of arguments does not match definition
C:\Users\Raphael\Desktop\basic R5\gamemodes\R5.pwn(1996) : warning 202: number of arguments does not match definition
C:\Users\Raphael\Desktop\basic R5\gamemodes\R5.pwn(1997) : warning 202: number of arguments does not match definition
C:\Users\Raphael\Desktop\basic R5\gamemodes\R5.pwn(1997) : warning 202: number of arguments does not match definition
C:\Users\Raphael\Desktop\basic R5\gamemodes\R5.pwn(1998) : warning 202: number of arguments does not match definition
C:\Users\Raphael\Desktop\basic R5\gamemodes\R5.pwn(1998) : warning 202: number of arguments does not match definition
C:\Users\Raphael\Desktop\basic R5\gamemodes\R5.pwn(1999) : warning 202: number of arguments does not match definition
C:\Users\Raphael\Desktop\basic R5\gamemodes\R5.pwn(1999) : warning 202: number of arguments does not match definition
C:\Users\Raphael\Desktop\basic R5\gamemodes\R5.pwn(2000) : warning 202: number of arguments does not match definition
C:\Users\Raphael\Desktop\basic R5\gamemodes\R5.pwn(2000) : warning 202: number of arguments does not match definition
C:\Users\Raphael\Desktop\basic R5\gamemodes\R5.pwn(2001) : warning 202: number of arguments does not match definition
C:\Users\Raphael\Desktop\basic R5\gamemodes\R5.pwn(2001) : warning 202: number of arguments does not match definition
C:\Users\Raphael\Desktop\basic R5\gamemodes\R5.pwn(2002) : warning 202: number of arguments does not match definition
C:\Users\Raphael\Desktop\basic R5\gamemodes\R5.pwn(2002) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
18 Warnings.
Liegt es an den Stocks ?
Wenn ja, wie muss ich sie Umschreiben das es auch Fuunktioniert ?
Danke schonmal im Vorraus
MfG
Raphael