CMD:carkey(playerid,params[])
{
new string[512], bool:found;
for(new s = 1; s <= 5; s++)
{
found = false;
for(new i = 0; i < sizeof(cInfo); i++)
{
if(cInfo[i][besitzer] == playerInfo[playerid][pMySQLID] && cInfo[i][slot] == s) //2464
{
found = true;
model = cInfo[i][carmodel];
if(model >= 400 && model <= 611) format(string,sizeof(string),"%s{FF0000}%d) %s\n",string, s, getVehicleName(model));
else format(string,sizeof(string),"%s{00FF0}%d) -Schlüssel frei-\n",string, s);
break;
}
}
if(!found) format(string,sizeof(string),"%s{00FF0}%d) -Schlüssel frei-\n",string, s);
}
ShowPlayerDialog(playerid,DIALOG_CARKEY,DIALOG_STYLE_LIST,"Fahrzeuge",string,"Auswählen","Beenden");
return 1;
}
C:\Users\Natascha\Desktop\Selfmade xGhost\gamemodes\Selfmade.pwn(2464) : error 028: invalid subscript (not an array or too many subscripts): "playerInfo"
C:\Users\Natascha\Desktop\Selfmade xGhost\gamemodes\Selfmade.pwn(2464) : warning 215: expression has no effect
C:\Users\Natascha\Desktop\Selfmade xGhost\gamemodes\Selfmade.pwn(2464) : error 001: expected token: ";", but found "]"
C:\Users\Natascha\Desktop\Selfmade xGhost\gamemodes\Selfmade.pwn(2464) : error 029: invalid expression, assumed zero
C:\Users\Natascha\Desktop\Selfmade xGhost\gamemodes\Selfmade.pwn(2464) : fatal error 107: too many error messages on one line