Hey Leute ich habe leider ein Problem und zwar habe ich mich an ein Autohaus gesetzt nun ja ich weiß nicht was ich machen sollen vill. könnt ihr da was raus sehen !!!
Error
Code
C:\Users\blaizerado\Desktop\Untitled.pwn(49) : warning 202: number of arguments does not match definition
C:\Users\blaizerado\Desktop\Untitled.pwn(79) : warning 217: loose indentation
C:\Users\blaizerado\Desktop\Untitled.pwn(83) : warning 217: loose indentation
C:\Users\blaizerado\Desktop\Untitled.pwn(99) : warning 202: number of arguments does not match definition
C:\Users\blaizerado\Desktop\Untitled.pwn(99) : warning 202: number of arguments does not match definition
C:\Users\blaizerado\Desktop\Untitled.pwn(102) : error 017: undefined symbol "Autos"
C:\Users\blaizerado\Desktop\Untitled.pwn(102) : warning 215: expression has no effect
C:\Users\blaizerado\Desktop\Untitled.pwn(102) : error 001: expected token: ";", but found "]"
C:\Users\blaizerado\Desktop\Untitled.pwn(102) : error 029: invalid expression, assumed zero
C:\Users\blaizerado\Desktop\Untitled.pwn(102) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Alles anzeigen
C
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#include <Dini>
new kaufauto[2];
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] = {
{"Los Santos Autohaus",1792.1665, -1897.5760, 13.3982, 1792.1665, -1897.5760, 13.3982, 271.8239, " Los Santos",0}
};
new AutoszumVerkauf[1][Autokauf] = {
{560, "Sultan","Los Santos Autohaus",60000,1804.2139, -1909.3638, 13.3978, 85.5375}
};
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
//autohäuser Autos
for(new i =0; i < sizeof AutoszumVerkauf; i++)
{
kaufauto[i] = CreateVehicle(AutoszumVerkauf[i][modelid],AutoszumVerkauf[i][PosX],AutoszumVerkauf[i][PosY],AutoszumVerkauf[i][PosZ],-1,-1,-1);
}
//AhutoHaus
for(new i =0; i < sizeof Autohaus; i++)
{
new Fahrzeugdatei[60];
format(Fahrzeugdatei,sizeof(Fahrzeugdatei),"Autohaus/%s.ini",Autohaus[i][Autohausname]);
if(!dini_Exists(Fahrzeugdatei))
{
dini_Create(Fahrzeugdatei);
dini_Set(Fahrzeugdatei,"Besitzer","Los Santos");
dini_IntSet(Fahrzeugdatei,"Kasse",Autohaus[i][Kasse]);
}
Autohaus[i][Kasse] = dini_Int(Fahrzeugdatei,"Kasse");
format(Autohaus[i][Inhaber],MAX_PLAYER_NAME,dini_Get(Fahrzeugdatei,"Inhaber"));
return 1;
}
return 1;
}
public OnGameModeExit()
{
for(new i =0; i < sizeof Autohaus; i++)
{
new Fahrzeugdatei[60];
format(Fahrzeugdatei,sizeof(Fahrzeugdatei),"Autohaus/%s.ini",Autohaus[i][Autohausname]);
dini_Set(Fahrzeugdatei,"Inhaber",Autohaus[i][Inhaber]);
dini_Set(Fahrzeugdatei,"Kasse",Autohaus[i][Kasse]);
}
for(new i=0; i < sizeof AutoszumVerkauf; i++)
{
DestroyVehicle(kaufauto[i]);
}
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public OnPlayerConnect(playerid)
{
for(new i= 0; i < 3; i++)
{
new Autodatei[80];
format(Autodatei,sizeof(Autodatei),"/Autos/%sAuto%d.ini",GetPlayerName(playerid),i);
if(dini_Exists(Autodatei))
{
Autos[playerid][i][modelid] = dini_Int(Autodatei,"modelid");
Autos[playerid][i][Farbe1] = dini_Int(Autodatei,"Farbe1");
Autos[playerid][i][Farbe2] = dini_Int(Autodatei,"Farbe2");
Autos[playerid][i][HP] = dini_Int(Autodatei,"HP");
Autos[playerid][i][Paintjob] = dini_Int(Autodatei,"Paintjob");
Autos[playerid][i][Nummernschild] = dini_Int(Autodatei,"Nummernschild");
Autos[playerid][i][PosX] = dini_Int(Autodatei,"PosX");
Autos[playerid][i][PosY] = dini_Int(Autodatei,"PosY");
Autos[playerid][i][PosZ] = dini_Int(Autodatei,"PosZ");
Autos[playerid][i][PosA] = dini_Int(Autodatei,"PosA");
Autos[playerid][i][Spoiler] = dini_Int(Autodatei,"Spoiler");
Autos[playerid][i][Raeder] = dini_Int(Autodatei,"Reader");
Autos[playerid][i][Nitro] = dini_Int(Autodatei,"Nitro");
Autos[playerid][i][Stereo] = dini_Int(Autodatei,"Stereo");
Autos[playerid][i][Hydr] = dini_Int(Autodatei,"Hydr");
Autos[playerid][i][FrontBumber] = dini_Int(Autodatei,"FrontBumber");
Autos[playerid][i][RearBumber] = dini_Int(Autodatei,"RearBumber");
Autos[playerid][i][VentLeft] = dini_Int(Autodatei,"VentLeft");
Autos[playerid][i][VentRight] = dini_Int(Autodatei,"VentRight");
Autos[playerid][i][Roof] = dini_Int(Autodatei,"Roof");
Autos[playerid][i][Hood] = dini_Int(Autodatei,"Hood");
Autos[playerid][i]Lamps] = dini_Int(Autodatei,"Lamps");
Autos[playerid][i][Exhaust] = dini_Int(Autodatei,"Exhaust");
Autos[playerid][i][VentLeft] = dini_Int(Autodatei,"VentLeft");
Spielercar[playerid][i] = CreateVehicle(Autos[playerid][i][modelid],Autos[playerid][i][PosX],Autos[playerid][i][PosY],Autos[playerid][i][PsoZ],Autos[playerid][i][PosA],Autos[playerid][i][Farbe1],Autos[playerid][i][Farbe2],-1);
SetVehicleNumberPlate(Spielercar[playerid][i],dini_Int(Autodatei,"Nummernschild"));
SetVehicleParamsForPlayer(Spielercar[playerid][i],playerid,0,0);
if(Autos[playerid][i][Paintjob] > 0)
{
ChangeVehiclePaintjob(Spielercar[playerid][i][Paintjob]);
}
if(Autos[playerid][i][Spoiler] >= 1000)
{
AddVehicleComponent(Spielercar[playerid][i][Spoiler]);
}
if(Autos[playerid][i][Hood] >= 1000)
{
AddVehicleComponent(Spielercar[playerid][i][hood]);
}
if(Autos[playerid][i][Roof] >= 1000)
{
AddVehicleComponent(Spielercar[playerid][i][Roof]);
}
if(Autos[playerid][i][Lamps] >= 1000)
{
AddVehicleComponent(Spielercar[playerid][i][Lamps]);
}
}
}
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
Alles anzeigen
M.F.G
Include