Hi Leute, ich bin grad dabei zu Scripten..
if(classid == 0 || classid == 1 || classid == 2 || classid == 3 || classid == 4 || classid == 5 || classid == 6){
SetPlayerColor(playerid,COLOR_DBLUE);
GameTextForPlayer(playerid, "~w~Admin", 1500, 6);}//-
else if(classid == 20 || classid == 21 || classid == 22){
SetPlayerColor(playerid,COLOR_GREEN);
GameTextForPlayer(playerid, "~w~Grove Street", 1500, 6);}//-
else if(classid == 23 || classid == 24 || classid == 25){
SetPlayerColor(playerid,COLOR_PURPLE);
GameTextForPlayer(playerid, "~w~Ballas", 1500, 6);}//-
else if(classid == 26 || classid == 27 || classid == 28){
SetPlayerColor(playerid,COLOR_GREY);
GameTextForPlayer(playerid, "~w~Los Aztecas", 1500, 6);}
else if(classid == 29 || classid == 30 || classid == 31){
SetPlayerColor(playerid,COLOR_BLACK);
GameTextForPlayer(playerid, "~w~Vagos", 1500, 6);}
D:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\Gang-War.pwn(207) : error 002: only a single statement (or expression) can follow each "case"
D:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\Gang-War.pwn(207) : error 029: invalid expression, assumed zero
D:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\Gang-War.pwn(210) : error 029: invalid expression, assumed zero
D:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\Gang-War.pwn(210) : warning 215: expression has no effect
D:\Program Files\Rockstar Games\Grand Theft Auto San Andreas\gamemodes\Gang-War.pwn(210) : error 001: expected token: ";", but found "if"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Wenn ich hier irgendwas änder, sind direkt 24 Errors drin. Woran könnte das liegen?
MfG