Hallo Community,
ich habe einen Error in den Stock wo ich meinen Jobnamen auslesen lasse.
stock Jobname(jID)
{
new Jobname[50];
switch(jID)
{
case 0:{Jobname="Arbeitlos";}
case 1:{Jobname="Pilot";}
case 2:{Jobname="Busfahrer";}
case 3:{Jobname="Müllmann";}
case 4:{Jobname="Fischer";}
case 5:{Jobname="Waffendealer";}
case 6:{Jobname="Drogendealer";}
case 7:{Jobname="Detektiv";}
case 8:{Jobname="Stadtreiniger";}
case 9:{Jobname="Farmer";}
case 10:{Jobname="Trucker";}
default:{Jobname="ERROR";}
}
return Jobname;
}
C:\Users\Marlon\Desktop\Selfmade\pawno\hgjh.pwn(548) : warning 219: local variable "Jobname" shadows a variable at a preceding level