Heyho !
Hab mich an ein Autohaus system gewagt und bekomme nun 7 Errors:
Erste:
C:\Programme\Rockstar Games\GTA San Andreas\gamemodes\sal.pwn(174) : error 001: expected token: "-identifier-", but found "new"
new Autohaus[1][Autohausinfo] = {
Zweite
C:\Programme\Rockstar Games\GTA San Andreas\gamemodes\sal.pwn(320) : warning 213: tag mismatch
C:\Programme\Rockstar Games\GTA San Andreas\gamemodes\sal.pwn(320) : error 032: array index out of bounds (variable "Autohaus")
CreatePickup(1274,1,Autohaus[i][PosX],Autohaus[i][PosY],Autohaus[i][PosZ],-1);
Dritte:
C:\Programme\Rockstar Games\GTA San Andreas\gamemodes\sal.pwn(326) : warning 202: number of arguments does not match definition
C:\Programme\Rockstar Games\GTA San Andreas\gamemodes\sal.pwn(326) : warning 202: number of arguments does not match definition
kaufauto[i] = CreateVehicle(Billigautos[i][modelid],Billigautos[i][PosX],Billigautos[i][PosY],Billigautos[i][PosZ],-1,-1);
Vierte:
C:\Programme\Rockstar Games\GTA San Andreas\gamemodes\sal.pwn(333) : error 029: invalid expression, assumed zero
C:\Programme\Rockstar Games\GTA San Andreas\gamemodes\sal.pwn(333) : error 091: ambiguous constant; tag override is required (symbol "Autohausname")
C:\Programme\Rockstar Games\GTA San Andreas\gamemodes\sal.pwn(333) : error 029: invalid expression, assumed zero
C:\Programme\Rockstar Games\GTA San Andreas\gamemodes\sal.pwn(333) : fatal error 107: too many error messages on one line
new Fahrzeugdatei[60];
format(Fahrzeugdatei,sizeof(Fahrzeugdatei),"Autohaus/%s.txt",Autohaus[i],[Autohausname]);
die enums:
enum Autohausinfo
{
Autohausname[60],
Float:X,
Float:Y,
Float:Z,
Float:SpawnX,
Float:SpawnY,
Float:SpawnZ,
Float:SpawnA,
Inhaber[MAX_PLAYER_NAME],
Kasse
}
enum Autokauf
{
modelid,
Name[40],
Autohausname[60],
Preis,
Float:PosX,
Float:PosY,
Float:PosZ,
Float:PosA,
new Autohaus[1][Autohausinfo] = {
{"Teddys Billighaus",543.4729,-1293.7830,17.2422,533.5169,-1276.6116,17.2422,221.4714,"Teddy",0}
};
new Billigautos[1][Autokauf] = {
{404,"Perenniel","Teddys Billighaus",5750,742.5615,-1374.5509,25.6922,262.6618}
};
€: Grammatik :3