Hallo Leute finde bei diesen Sachen den Fehler nicht
new rankNameArray[64][20] = {
"Rekrut","Kanonier","Gefreiter","BT-1 | Obergefreiter","BT-2 | Hauptgefreiter",//das ist die Zeile
"","","","","ST | Fahnenjunker","LW-1 | Feldwebel","LW-2 | Oberfeldwebel","LW-3 | Hauptfeldwebel",
"","Leutnant","Oberleutnant","BT-Oberst","LW-Oberst","Generalleutnant****","General****"
};
stock GetRankName(playerid)
{
new faction = GetPVarInt(playerid,"Fraktion");
new rank = GetPVarInt(playerid,"Rang");
new tmpstr[32];
switch ( faction )
{
case "ARMY"//das ist die Zeile
{
switch ( rank )
{
return rankNameArray[rank-1];//das ist die Zeile
}
}
}
}
C:\Users\Andreas\Desktop\samp\sampserver\gamemodes\test.pwn(39) : error 018: initialization data exceeds declared size
C:\Users\Andreas\Desktop\samp\sampserver\gamemodes\test.pwn(268) : warning 202: number of arguments does not match definition
C:\Users\Andreas\Desktop\samp\sampserver\gamemodes\test.pwn(268) : warning 202: number of arguments does not match definition
C:\Users\Andreas\Desktop\samp\sampserver\gamemodes\test.pwn(268) : warning 202: number of arguments does not match definition
C:\Users\Andreas\Desktop\samp\sampserver\gamemodes\test.pwn(577) : warning 217: loose indentation
C:\Users\Andreas\Desktop\samp\sampserver\gamemodes\test.pwn(577) : warning 202: number of arguments does not match definition
C:\Users\Andreas\Desktop\samp\sampserver\gamemodes\test.pwn(744 -- 745) : error 029: invalid expression, assumed zero
C:\Users\Andreas\Desktop\samp\sampserver\gamemodes\test.pwn(748) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\Andreas\Desktop\samp\sampserver\gamemodes\test.pwn(748) : warning 215: expression has no effect
C:\Users\Andreas\Desktop\samp\sampserver\gamemodes\test.pwn(740) : warning 204: symbol is assigned a value that is never used: "tmpstr"
C:\Users\Andreas\Desktop\samp\sampserver\gamemodes\test.pwn(740 -- 751) : warning 209: function "GetRankName" should return a value
C:\Users\Andreas\Desktop\samp\sampserver\gamemodes\test.pwn(740 -- 752) : error 054: unmatched closing brace ("}")
C:\Users\Andreas\Desktop\samp\sampserver\gamemodes\test.pwn(95) : warning 204: symbol is assigned a value that is never used: "Arenaenter"
C:\Users\Andreas\Desktop\samp\sampserver\gamemodes\test.pwn(95 -- 1004) : warning 203: symbol is never used: "Arenaexit"
C:\Users\Andreas\Desktop\samp\sampserver\gamemodes\test.pwn(95 -- 1004) : warning 203: symbol is never used: "admincar"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
PS: wie kann ich ein fahrzeug erstellen und ihn hineinsehtzen mit CreateVehicle(Vehicleid,Pos)? und GetPlayerInCar(playerid)