C:\Windows\Vss\First Person\GRZ-Dome\German-Black-Reallife\gamemodes\German-Black-Reallife.pwn(4531) : warning 219: local variable "neon" shadows a variable at a preceding level
C:\Windows\Vss\First Person\GRZ-Dome\German-Black-Reallife\gamemodes\German-Black-Reallife.pwn(4537) : error 028: invalid subscript (not an array or too many subscripts): "neon"
C:\Windows\Vss\First Person\GRZ-Dome\German-Black-Reallife\gamemodes\German-Black-Reallife.pwn(4537) : warning 215: expression has no effect
C:\Windows\Vss\First Person\GRZ-Dome\German-Black-Reallife\gamemodes\German-Black-Reallife.pwn(4537) : error 001: expected token: ";", but found "]"
C:\Windows\Vss\First Person\GRZ-Dome\German-Black-Reallife\gamemodes\German-Black-Reallife.pwn(4537) : error 029: invalid expression, assumed zero
stock GiveNeon(vehicleid, playerid, neon)
{
switch(neon)
{
case 0: //Blau//hier wenn man Blau anklickt im Dialog wird der Befehl weiter ausgeührt
{
neon[vehicleid] = CreateObject(18648,0,0,0,0,0,0,283);
neon1[vehicleid] = CreateObject(18648,0,0,0,0,0,0,283);
AttachObjectToVehicle(neon[vehicleid], vehicleid, 0.8,0,-0.70,0,0,0);//Hier werden die Neonröhren unter das Auto gemacht also ans auto gehängt das machen wir
AttachObjectToVehicle(neon1[vehicleid], vehicleid, -0.8,0,-0.70,0,0,0);
HatSchonNeon[playerid] = 1;
}
case 1: //Grün
{
neon[vehicleid] = CreateObject(18649,0,0,0,0,0,0,283);
neon1[vehicleid] = CreateObject(18649,0,0,0,0,0,0,283);
AttachObjectToVehicle(neon[vehicleid], vehicleid, 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(neon1[vehicleid], vehicleid, -0.8,0,-0.70,0,0,0);
HatSchonNeon[playerid] = 1;
}
case 2: //Rot
{
neon[vehicleid] = CreateObject(18647,0,0,0,0,0,0,283);
neon1[vehicleid] = CreateObject(18647,0,0,0,0,0,0,283);
AttachObjectToVehicle(neon[vehicleid], vehicleid, 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(neon1[vehicleid], vehicleid, -0.8,0,-0.70,0,0,0);
HatSchonNeon[playerid] = 1;
}
case 3: //Weiß
{
neon[vehicleid] = CreateObject(18652,0,0,0,0,0,0,283);
neon1[vehicleid] = CreateObject(18652,0,0,0,0,0,0,283);
AttachObjectToVehicle(neon[vehicleid], vehicleid, 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(neon1[vehicleid], vehicleid, -0.8,0,-0.70,0,0,0);
HatSchonNeon[playerid] = 1;
}
case 4: //Gelb
{
neon[vehicleid] = CreateObject(18650,0,0,0,0,0,0,283);
neon1[vehicleid] = CreateObject(18650,0,0,0,0,0,0,283);
AttachObjectToVehicle(neon[vehicleid], vehicleid, 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(neon1[vehicleid], vehicleid, -0.8,0,-0.70,0,0,0);
HatSchonNeon[playerid] = 1;
}
case 5: //Pink
{
neon[vehicleid] = CreateObject(18651,0,0,0,0,0,0,283);
neon1[vehicleid] = CreateObject(18651,0,0,0,0,0,0,283);
AttachObjectToVehicle(neon[vehicleid], vehicleid, 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(neon1[vehicleid], vehicleid, -0.8,0,-0.70,0,0,0);
HatSchonNeon[playerid] = 1;
}
}
return neon;
}