Guten Tag,
Und zwar sitze ich schon seit einer Stunde vor dem Problem.
Habe nie mit Switch & case gearbeitet.
Erros:
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\R5.pwn(102) : error 035: argument type mismatch (argument 1)
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\R5.pwn(102) : error 002: only a single statement (or expression) can follow each "case"
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\R5.pwn(103) : error 014: invalid statement; not in switch
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\R5.pwn(103) : warning 215: expression has no effect
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\R5.pwn(103) : error 001: expected token: ";", but found ":"
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\R5.pwn(103) : error 029: invalid expression, assumed zero
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\R5.pwn(103) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
Zeilen:
switch (SpielerInfo[playerid][Adminlevel] > 0)
{
case 1:(SetPlayerColor("gruen"));
case 2:(SetPlayerColor("blau"));
case 3:(SetPlayerColor("braun"));
case 4:(SetPlayerColor("rot"));
}
Hoffe mir kann jemand helfen.
Mfg