Hallo leute...
Ich habe versucht ein CarHeal zu machen und ich habe beim befehl paar Warnings und Errors bekommen
:
C:\Users\Kevin\Desktop\GTA & SAMP (all)\GNR Script\gamemodes\GSR.pwn(38216) : error 033: array must be indexed (variable "Dtc_PlayerHaveCar")
C:\Users\Kevin\Desktop\GTA & SAMP (all)\GNR Script\gamemodes\GSR.pwn(55289) : warning 213: tag mismatch
C:\Users\Kevin\Desktop\GTA & SAMP (all)\GNR Script\gamemodes\GSR.pwn(55291) : warning 213: tag mismatch
C:\Users\Kevin\Desktop\GTA & SAMP (all)\GNR Script\gamemodes\GSR.pwn(55292) : warning 213: tag mismatch
C:\Users\Kevin\Desktop\GTA & SAMP (all)\GNR Script\gamemodes\GSR.pwn(55292) : warning 213: tag mismatch
C:\Users\Kevin\Desktop\GTA & SAMP (all)\GNR Script\gamemodes\GSR.pwn(55300) : warning 213: tag mismatch
C:\Users\Kevin\Desktop\GTA & SAMP (all)\GNR Script\gamemodes\GSR.pwn(55302) : warning 213: tag mismatch
C:\Users\Kevin\Desktop\GTA & SAMP (all)\GNR Script\gamemodes\GSR.pwn(55303) : warning 213: tag mismatch
C:\Users\Kevin\Desktop\GTA & SAMP (all)\GNR Script\gamemodes\GSR.pwn(55303) : warning 213: tag mismatch
C:\Users\Kevin\Desktop\GTA & SAMP (all)\GNR Script\gamemodes\GSR.pwn(55311) : warning 213: tag mismatch
C:\Users\Kevin\Desktop\GTA & SAMP (all)\GNR Script\gamemodes\GSR.pwn(55313) : warning 213: tag mismatch
C:\Users\Kevin\Desktop\GTA & SAMP (all)\GNR Script\gamemodes\GSR.pwn(55314) : warning 213: tag mismatch
C:\Users\Kevin\Desktop\GTA & SAMP (all)\GNR Script\gamemodes\GSR.pwn(55314) : warning 213: tag mismatch
C:\Users\Kevin\Desktop\GTA & SAMP (all)\GNR Script\gamemodes\GSR.pwn(55322) : warning 213: tag mismatch
C:\Users\Kevin\Desktop\GTA & SAMP (all)\GNR Script\gamemodes\GSR.pwn(55324) : warning 213: tag mismatch
C:\Users\Kevin\Desktop\GTA & SAMP (all)\GNR Script\gamemodes\GSR.pwn(55325) : warning 213: tag mismatch
C:\Users\Kevin\Desktop\GTA & SAMP (all)\GNR Script\gamemodes\GSR.pwn(55325) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Alles anzeigen
[pwn=55282] if(dialogid == DIALOG_CARHEAL)
{
if(response == 1) {
switch(listitem){
case 0: {
new vID = GetPlayerVehicleID(playerid);
for(new x = 0; x < MaxVeh; x++){
if(PlayerCar[playerid][x][fCarid] == vID){
GivePlayerMoney(playerid, -500000);
PlayerCar[playerid][x][fHealth] = 1250;
SetVehicleHealth(PlayerCar[playerid][x][fCarid], PlayerCar[playerid][x][fHealth]);
SendClientMessage(playerid, COLOR_GREEN, "Du hast erfolgreich dein Auto auf 1250 aufgerüstet.");
}
} SendClientMessage(playerid, COLOR_RED,"Du bist in deinem Auto");
}
case 1: {
new vID = GetPlayerVehicleID(playerid);
for(new x = 0; x < MaxVeh; x++){
if(PlayerCar[playerid][x][fCarid] == vID){
GivePlayerMoney(playerid, -500000);
PlayerCar[playerid][x][fHealth] = 1250;
SetVehicleHealth(PlayerCar[playerid][x][fCarid], PlayerCar[playerid][x][fHealth]);
SendClientMessage(playerid, COLOR_GREEN, "Du hast erfolgreich dein Auto auf 1250 aufgerüstet.");
}
} SendClientMessage(playerid, COLOR_RED,"Du bist in deinem Auto");
}
case 2: {
new vID = GetPlayerVehicleID(playerid);
for(new x = 0; x < MaxVeh; x++){
if(PlayerCar[playerid][x][fCarid] == vID){
GivePlayerMoney(playerid, -500000);
PlayerCar[playerid][x][fHealth] = 1250;
SetVehicleHealth(PlayerCar[playerid][x][fCarid], PlayerCar[playerid][x][fHealth]);
SendClientMessage(playerid, COLOR_GREEN, "Du hast erfolgreich dein Auto auf 1250 aufgerüstet.");
}
} SendClientMessage(playerid, COLOR_RED,"Du bist in deinem Auto");
}
case 3: {
new vID = GetPlayerVehicleID(playerid);
for(new x = 0; x < MaxVeh; x++){
if(PlayerCar[playerid][x][fCarid] == vID){
GivePlayerMoney(playerid, -500000);
PlayerCar[playerid][x][fHealth] = 1250;
SetVehicleHealth(PlayerCar[playerid][x][fCarid], PlayerCar[playerid][x][fHealth]);
SendClientMessage(playerid, COLOR_GREEN, "Du hast erfolgreich dein Auto auf 1250 aufgerüstet.");
}
} SendClientMessage(playerid, COLOR_RED,"Du bist in deinem Auto");
}
}
}
else SendClientMessage(playerid, COLOR_GREEN,"Hoffentlich hast du alles was du brauchst gekauft.");
}[/pwn]