Hallo , also ich habe errors mit autohaus system
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(29339) : warning 219: local variable "Status" shadows a variable at a preceding level
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(29339) : warning 204: symbol is assigned a value that is never used: "Status"
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(42353) : warning 235: public function lacks forward declaration (symbol "BuyWangCarsAuto")
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(42357) : error 017: undefined symbol "PlayerGetMoney"
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(42359) : error 017: undefined symbol "SendUserMessage"
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(42364) : error 017: undefined symbol "PlayerGiveMoney"
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(42374) : error 017: undefined symbol "SendUserMessage"
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(42375) : error 017: undefined symbol "SendUserMessage"
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(42376) : error 017: undefined symbol "SendUserMessage"
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(42377) : error 017: undefined symbol "SendUserMessage"
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(42378) : error 017: undefined symbol "SendUserMessage"
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(42492) : warning 219: local variable "Autohaus" shadows a variable at a preceding level
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(42496) : warning 213: tag mismatch
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(42496) : warning 205: redundant code: constant expression is zero
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(42498) : error 032: array index out of bounds (variable "DtcParkPlatz")
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(42499) : error 032: array index out of bounds (variable "DtcParkPlatz")
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(42500) : error 032: array index out of bounds (variable "DtcParkPlatz")
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(42501) : error 032: array index out of bounds (variable "DtcParkPlatz")
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(42502) : error 032: array index out of bounds (variable "RadZahl")
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(42503) : error 032: array index out of bounds (variable "RadZahl")
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(42505) : error 032: array index out of bounds (variable "RadZahl")
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(42511) : warning 219: local variable "Preis" shadows a variable at a preceding level
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(42511) : warning 219: local variable "Autohaus" shadows a variable at a preceding level
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(42516) : warning 213: tag mismatch
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(42516) : warning 205: redundant code: constant expression is zero
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(42520) : warning 213: tag mismatch
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(42520) : warning 205: redundant code: constant expression is zero
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(42524) : warning 213: tag mismatch
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(42524) : warning 205: redundant code: constant expression is zero
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(42528) : warning 213: tag mismatch
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(42528) : warning 205: redundant code: constant expression is zero
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(42532) : warning 213: tag mismatch
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(42532) : warning 205: redundant code: constant expression is zero
C:\Users\Tufan\Desktop\server\gamemodes\GamerXscript.pwn(43127) : warning 203: symbol is never used: "CarSpawns"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
15 Errors.
if (strcmp("/carlock", cmdtext, true, 10) == 0)
{
if(Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]])
{
new Status = Dtc_Carlock[PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]];
new Float:dtc_X,Float:dtc_Y,Float:dtc_Z;
GetVehiclePos(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId],dtc_X,dtc_Y,dtc_Z);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i,20.0,dtc_X,dtc_Y,dtc_Z))
{
PlayerPlaySound(i,1147,dtc_X,dtc_Y,dtc_Z);
}
}
switch (Status)
{
case 0:
{
GameTextForPlayer(playerid, "~w~Fahrzeug ~r~abgeschlossen", 5000, 6);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
Dtc_Carlock[PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]] = 1;
Dtc_LockCar(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]);
}
case 1:
{
GameTextForPlayer(playerid, "~w~Fahrzeug ~g~aufgeschlossen", 5000, 6);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
Dtc_Carlock[PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]] = 0;
Dtc_UnLockCar(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Du besitzt Kein Fahrzeug für deinen Ausgewählten Schlüssel!");
return 1;
}
return 1;
}
if (strcmp("/carkey", cmdtext, true, 10) == 0)
{
new mv = MaxVeh;
if(mv > 1)
{
Dtc_PlayerKey[playerid] += 1;
if(Dtc_PlayerKey[playerid] == MaxVeh)
{
Dtc_PlayerKey[playerid] = 0;
}
if(Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]])
{
format(string, sizeof(string), "Du nimmst deinen %dten Auto-Schlüssel, für deinen %s!",Dtc_PlayerKey[playerid]+1,CarName[PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarModel]-400]);
}
else
{
format(string, sizeof(string), "Du nimmst deinen %dten Auto-Schlüssel, doch hast für diesen Schlüssel noch kein Auto!",Dtc_PlayerKey[playerid]+1);
}
SendClientMessage(playerid,COLOR_YELLOW,string);
}
return 1;
}
ublic OnVehicleStreamIn(vehicleid, forplayerid)
{
SetVehicleParamsForPlayer(vehicleid, forplayerid, iVehicleObjective[vehicleid][0], iVehicleObjective[vehicleid][1]);
}
public SetParkPlatz(playerid,Autohaus)
{
if(IsPlayerConnected(playerid) && !Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]])
{
if(Autohaus < AUTOHAUSER)
{
PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPos_x] = DtcParkPlatz[Autohaus][RadZahl[Autohaus]][0];
PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPos_y] = DtcParkPlatz[Autohaus][RadZahl[Autohaus]][1];
PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPos_z] = DtcParkPlatz[Autohaus][RadZahl[Autohaus]][2];
PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarRotate] = DtcParkPlatz[Autohaus][RadZahl[Autohaus]][3];
RadZahl[Autohaus] += 1;
if(RadZahl[Autohaus] >= MAXPARKPLATZE)
{
RadZahl[Autohaus] = 0;
}
}
}
}
public OnPlayerBuyCar(playerid,Model,Preis,Autohaus)//CARSYS
{
if(IsPlayerConnected(playerid) && !Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]])
{
CallRemoteFunction("M_GivePlayerMoney","id",playerid,-Preis);
if(Autohaus == 0)
{
AddToBizzTill(14,Preis);
}
else if(Autohaus == 1)
{
AddToBizzTill(12,Preis);
}
else if(Autohaus == 2)
{
AddToBizzTill(21,Preis);
}
else if(Autohaus == 3)
{
AddToBizzTill(15,Preis);
}
else if(Autohaus == 4)
{
AddToBizzTill(13,Preis);
}
SetParkPlatz(playerid,Autohaus);
new name[MAX_PLAYER_NAME], str[128];
GetPlayerName(playerid, name, sizeof name);
format(str, sizeof str, "/Autos/%s%d.dtcar", name,Dtc_PlayerKey[playerid]);
new File: hFile = fopen(str, io_write);
if (hFile)
{
new var[32];
format(var, 32, "CarId=0\n");fwrite(hFile, var);
format(var, 32, "CarModel=%d\n",Model);fwrite(hFile, var);
format(var, 32, "CarPos_x=%.3f\n",PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPos_x]);fwrite(hFile, var);
format(var, 32, "CarPos_y=%.3f\n",PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPos_y]);fwrite(hFile, var);
format(var, 32, "CarPos_z=%.3f\n",PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPos_z]);fwrite(hFile, var);
format(var, 32, "CarRotate=%.3f\n",PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarRotate]);fwrite(hFile, var);
format(var, 32, "CarNitro=0\n");fwrite(hFile, var);
format(var, 32, "CarHyd=0\n");fwrite(hFile, var);
format(var, 32, "CarWheel=0\n");fwrite(hFile, var);
format(var, 32, "CarAusp=0\n");fwrite(hFile, var);
format(var, 32, "CarSideL=0\n");fwrite(hFile, var);
format(var, 32, "CarSideR=0\n");fwrite(hFile, var);
format(var, 32, "CarFB=0\n");fwrite(hFile, var);
format(var, 32, "CarRB=0\n");fwrite(hFile, var);
format(var, 32, "CarSpoiler=0\n");fwrite(hFile, var);
format(var, 32, "CarRoof=0\n");fwrite(hFile, var);
format(var, 32, "CarHood=0\n");fwrite(hFile, var);
format(var, 32, "CarVents=0\n");fwrite(hFile, var);
format(var, 32, "CarLamps=0\n");fwrite(hFile, var);
format(var, 32, "CarPJ=-1\n");fwrite(hFile, var);
format(var, 32, "CarC1=-1\n");fwrite(hFile, var);
format(var, 32, "CarC2=-1\n");fwrite(hFile, var);
format(var, 32, "Preis=%d\n",Preis);fwrite(hFile, var);
fclose(hFile);
}
OnPlayerCarLogin(playerid);
}
}
public OnPlayerCarLogin(playerid)
{
for(new x = 0; x < MaxVeh; x++)
{
if(!Dtc_PlayerHaveCar[playerid][x])
{
new string2[128];
new playername2[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername2, sizeof(playername2));
format(string2, sizeof(string2), "/Autos/%s%d.dtcar", playername2,x);
new File: UserFile = fopen(string2, io_read);
if (UserFile)
{
Dtc_PlayerHaveCar[playerid][x] = 1;
new key[ 256 ] , val[ 256 ];
new Data[ 256 ];
while ( fread( UserFile , Data , sizeof( Data ) ) )
{
key = ini_GetKey( Data );
if( strcmp( key , "CarId" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarId] = strval( val ); }
if( strcmp( key , "CarModel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarModel] = strval( val ); }
if( strcmp( key , "CarPos_x" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarPos_x] = floatstr( val ); }
if( strcmp( key , "CarPos_y" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarPos_y] = floatstr( val ); }
if( strcmp( key , "CarPos_z" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarPos_z] = floatstr( val ); }
if( strcmp( key , "CarRotate" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarRotate] = floatstr( val ); }
if( strcmp( key , "CarNitro" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarNitro] = strval( val ); }
if( strcmp( key , "CarHyd" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarHyd] = strval( val ); }
if( strcmp( key , "CarWheel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarWheel] = strval( val ); }
if( strcmp( key , "CarAusp" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarAusp] = strval( val ); }
if( strcmp( key , "CarSideL" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarSideL] = strval( val ); }
if( strcmp( key , "CarSideR" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarSideR] = strval( val ); }
if( strcmp( key , "CarFB" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarFB] = strval( val ); }
if( strcmp( key , "CarRB" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarRB] = strval( val ); }
if( strcmp( key , "CarSpoiler" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarSpoiler] = strval( val ); }
if( strcmp( key , "CarRoof" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarRoof] = strval( val ); }
if( strcmp( key , "CarHood" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarHood] = strval( val ); }
if( strcmp( key , "CarVents" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarVents] = strval( val ); }
if( strcmp( key , "CarLamps" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarLamps] = strval( val ); }
if( strcmp( key , "CarPJ" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarPJ] = strval( val ); }
if( strcmp( key , "CarC1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarC1] = strval( val ); }
if( strcmp( key , "CarC2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarC2] = strval( val ); }
if( strcmp( key , "Preis" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerCar[playerid][x][CarPreis] = strval( val ); }
}
fclose(UserFile);
PlayerCarSpawn(playerid,x);
}
}
}
}
public PlayerCarSpawn(playerid,Slot)
{
if(IsPlayerConnected(playerid))
{
if(Dtc_PlayerHaveCar[playerid][Slot])
{
PlayerCar[playerid][Slot][CarId] = CreateVehicle(PlayerCar[playerid][Slot][CarModel],PlayerCar[playerid][Slot][CarPos_x],PlayerCar[playerid][Slot][CarPos_y],PlayerCar[playerid][Slot][CarPos_z],PlayerCar[playerid][Slot][CarRotate],PlayerCar[playerid][Slot][CarC1],PlayerCar[playerid][Slot][CarC2], 60000);/*vehicle spawn*/
ChangeVehicleColor(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarC1],PlayerCar[playerid][Slot][CarC2]);
if(PlayerCar[playerid][Slot][CarPJ] >= 0) {ChangeVehiclePaintjob(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarPJ]);}
if(PlayerCar[playerid][Slot][CarNitro] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarNitro]);}
if(PlayerCar[playerid][Slot][CarHyd] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarHyd]);}
if(PlayerCar[playerid][Slot][CarWheel] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarWheel]);}
if(PlayerCar[playerid][Slot][CarAusp] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarAusp]);}
if(PlayerCar[playerid][Slot][CarSideL] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarSideL]);}
if(PlayerCar[playerid][Slot][CarSideR] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarSideR]);}
if(PlayerCar[playerid][Slot][CarFB] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarFB]);}
if(PlayerCar[playerid][Slot][CarRB] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarRB]);}
if(PlayerCar[playerid][Slot][CarSpoiler] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarSpoiler]);}
if(PlayerCar[playerid][Slot][CarRoof] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarRoof]);}
if(PlayerCar[playerid][Slot][CarHood] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarHood]);}
if(PlayerCar[playerid][Slot][CarVents] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarVents]);}
if(PlayerCar[playerid][Slot][CarLamps] != 0) {AddVehicleComponent(PlayerCar[playerid][Slot][CarId],PlayerCar[playerid][Slot][CarLamps]);}
if(Dtc_LockOnSpawn)
{
Dtc_Carlock[PlayerCar[playerid][Slot][CarId]] = 1;
Dtc_LockCar(PlayerCar[playerid][Slot][CarId]);
}
}
}
}
public OnVehicleMod(playerid,vehicleid,componentid)
{
for(new x = 0; x < MaxVeh; x++)
{
if (vehicleid == PlayerCar[playerid][x][CarId] && Dtc_PlayerHaveCar[playerid][x])
{
if((componentid >= 1008) && (componentid <= 1010)) {PlayerCar[playerid][x][CarNitro] = componentid;}
if((componentid >= 1142) && (componentid <= 1145)) {PlayerCar[playerid][x][CarVents] = componentid;}
if((componentid == 1013) || (componentid == 1024)) {PlayerCar[playerid][x][CarLamps] = componentid;}
if((componentid >= 1004) && (componentid <= 1005)||(componentid >= 1011) && (componentid <= 1012)) {PlayerCar[playerid][x][CarHood] = componentid;}
if(componentid == 1087) {PlayerCar[playerid][x][CarHyd] = componentid;}
if(componentid == 1086) {PlayerCar[playerid][x][CarHyd] = componentid;}
if(IsAWheel(componentid)) {PlayerCar[playerid][x][CarWheel] = componentid;}
if(IsAExhaust(componentid)) {PlayerCar[playerid][x][CarAusp] = componentid;}
if(IsASideL(componentid)) {PlayerCar[playerid][x][CarSideL] = componentid; PlayerCar[playerid][x][CarSideR] = SideR;}
if(IsASideR(componentid)) {PlayerCar[playerid][x][CarSideR] = componentid; PlayerCar[playerid][x][CarSideL] = SideL;}
if(IsAFB(componentid)) {PlayerCar[playerid][x][CarFB] = componentid;}
if(IsARB(componentid)) {PlayerCar[playerid][x][CarRB] = componentid;}
if(IsASpoiler(componentid)) {PlayerCar[playerid][x][CarSpoiler] = componentid;}
if(IsARoof(componentid)) {PlayerCar[playerid][x][CarRoof] = componentid;}
}
}
return 1;
}
ich wär sehr dankbar wenn mir das jemand vlllt über team viewer machen könnte oder mir sagen könnte wie das geht